diff --git a/nvimrc b/nvimrc index 1f1a7d5..f778aef 100644 --- a/nvimrc +++ b/nvimrc @@ -542,16 +542,6 @@ require 'nvim-treesitter.configs'.setup { ["[F"] = "@function.inner", }, }, - refactor = { - enable = true, - -- TODO: navigation broken. - navigation = { - keymaps = { - goto_next_usage = "]r", - goto_previous_usage = "[r", - }, - }, - }, lsp_interop = { enable = true, peek_definition_code = { @@ -560,6 +550,18 @@ require 'nvim-treesitter.configs'.setup { }, }, }, + refactor = { + highlight_definitions = { enable = true }, + highlight_current_scope = { enable = true }, + navigation = { + enable = true, + keymaps = { + goto_definition_lsp_fallback = "gd", + goto_next_usage = "]r", + goto_previous_usage = "[r", + }, + }, + }, playground = { enable = true, disable = {}, @@ -595,7 +597,7 @@ local on_attach = function(client, bufnr) vim.api.nvim_exec([[autocmd User LspDiagnosticsChanged call lightline#update()]], false) local opts = { noremap=true, silent=false } - vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) + -- vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', 'lua vim.lsp.buf.type_definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gD', 'lua vim.lsp.buf.type_definition()', opts)