diff --git a/init.vim b/init.vim index ba7e866..64525ba 100644 --- a/init.vim +++ b/init.vim @@ -44,6 +44,8 @@ source ~/.config/nvim/plugin-confs/nvim-dap-ui.lua " source ~/.config/nvim/plugin-confs/lsp-signature.lua " source ~/.config/nvim/plugin-confs/nvim-docs-view.lua +source ~/.config/nvim/plugin-confs/neodev.lua + " nvim and vim plugins source ~/.vim/plugin-confs/floaterm.vim source ~/.vim/plugin-confs/fzf.vim diff --git a/plugin-confs/neodev.lua b/plugin-confs/neodev.lua new file mode 100644 index 0000000..f1f8ec7 --- /dev/null +++ b/plugin-confs/neodev.lua @@ -0,0 +1,3 @@ +require("neodev").setup({ + -- add any options here, or leave empty to use the default settings +}) diff --git a/plugin-confs/nvim-cmp.lua b/plugin-confs/nvim-cmp.lua index 653c8d2..6d8dd2a 100644 --- a/plugin-confs/nvim-cmp.lua +++ b/plugin-confs/nvim-cmp.lua @@ -216,10 +216,18 @@ local servers = { 'dotls', 'dockerls', 'html', 'cssls', 'lua_ls' } for _, lsp in ipairs(servers) do - lspconfig[lsp].setup { - -- on_attach = my_custom_on_attach, - capabilities = capabilities - } + if lsp == 'lua_ls' then + lspconfig[lsp].setup { + -- on_attach = my_custom_on_attach, + capabilities = capabilities, + callSnippet = "Replace" + } + else + lspconfig[lsp].setup { + -- on_attach = my_custom_on_attach, + capabilities = capabilities + } + end end cmp.event:on("menu_opened",