From d2af6e0d9ea2564979b78c92e9e2f743c23661ae Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sun, 14 Aug 2022 09:46:16 -0400 Subject: [PATCH] Update rust-tools init --- lsp.vim | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) 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