From 47be6a508c4150f8ef2627ae185c650c081c6bbf Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 4 Jun 2022 19:17:01 +0800 Subject: Add more plugins for nvim --- .vim/after/plugin/nvim-lsp.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.vim/after/plugin/nvim-lsp.vim') diff --git a/.vim/after/plugin/nvim-lsp.vim b/.vim/after/plugin/nvim-lsp.vim index f6d23c3..d36ed3d 100644 --- a/.vim/after/plugin/nvim-lsp.vim +++ b/.vim/after/plugin/nvim-lsp.vim @@ -4,11 +4,15 @@ endif packadd nvim-lspconfig packadd cmp-nvim-lsp +packadd symbols-outline.nvim +packadd lsp_signature.nvim lua <f', vim.lsp.buf.formatting, bufopts) + vim.keymap.set('n', 's', symbols_outline.toggle_outline) + vim.cmd [[ - autocmd! BufWritePre *.go,*.rs lua vim.lsp.buf.formatting_sync(nil, 1000) + autocmd BufWritePre *.go,*.rs lua vim.lsp.buf.formatting_sync(nil, 1000) ]] + lsp_signature.on_attach() end local servers = { 'clangd', 'gopls' , 'gdscript', 'pylsp' } -- cgit v1.2.3