vim_g_helpers.lua 455 B

123456789101112131415161718192021
  1. -- TODO: check if this is needed at all with telescope-ui-select
  2. local telescope = require('telescope.builtin')
  3. vim.g.helpers = {
  4. open_references = function()
  5. -- vim.lsp.buf.references()
  6. telescope.lsp_references()
  7. end,
  8. open_implementations = function()
  9. -- vim.lsp.buf.implementation()
  10. telescope.lsp_implementations()
  11. end,
  12. open_definitions = function()
  13. -- vim.lsp.buf.definition()
  14. telescope.lsp_definitions()
  15. end,
  16. }