From f0b7e62b92ebda4630b7b699f5ffc785ed7c09a7 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Tue, 15 Aug 2023 04:18:31 -0700 Subject: [PATCH] update --- init.vim | 2 ++ plugin-confs/neodev.lua | 3 +++ plugin-confs/nvim-cmp.lua | 16 ++++++++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 plugin-confs/neodev.lua 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",