diff --git a/lsp.vim b/lsp.vim index e363309..726786e 100644 --- a/lsp.vim +++ b/lsp.vim @@ -13,26 +13,19 @@ set shortmess+=c " rust-tools will configure and enable certain LSP features for us. " See https://github.com/simrat39/rust-tools.nvim#configuration lua <", rt.hover_actions.hover_actions, { buffer = bufnr}) + -- Code action groups + vim.keymap.set("n", "a>", rt.code_action_group.code_action_group, { buffer = bufnr}) + end }, - - -- all the opts to send to nvim-lspconfig - -- these override the defaults set by rust-tools.nvim - -- see https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md#rust_analyzer - server = {}, -- rust-analyer options -} - -require('rust-tools').setup(opts) + }, -- rust-analyer options +}) EOF " Setup Completion