diff --git a/init.lua b/init.lua index 25d1fa5..60dffee 100644 --- a/init.lua +++ b/init.lua @@ -183,6 +183,9 @@ require('lazy').setup({ }, indent = { enable = true, disable = { 'ruby' } }, }, + dependencies = { + 'nvim-treesitter/nvim-treesitter-textobjects', + }, -- There are additional nvim-treesitter modules that you can use to interact -- with nvim-treesitter. You should go explore a few and see what interests you: -- diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index 7c4cb4d..c23a973 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -43,7 +43,7 @@ local on_attach = function(_, bufnr) local opts = { noremap = true, silent = true, buffer = bufnr } keymap.set("n", "g0", "lua vim.lsp.buf.document_symbol()", opts) - keymap.set("n", "gd", "Telescope lsp_definitions", opts) + keymap.set("n", "gd", "lua vim.lsp.buf.definition()", opts) keymap.set("n", "gi", "lua vim.lsp.buf.implementation()", opts) keymap.set("n", "l", smart_format, opts) keymap.set("n", "rn", "lua vim.lsp.buf.rename()", opts)