update
This commit is contained in:
parent
6e5679d255
commit
f0b7e62b92
2
init.vim
2
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/lsp-signature.lua
|
||||||
" source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
" source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
||||||
|
|
||||||
|
source ~/.config/nvim/plugin-confs/neodev.lua
|
||||||
|
|
||||||
" nvim and vim plugins
|
" nvim and vim plugins
|
||||||
source ~/.vim/plugin-confs/floaterm.vim
|
source ~/.vim/plugin-confs/floaterm.vim
|
||||||
source ~/.vim/plugin-confs/fzf.vim
|
source ~/.vim/plugin-confs/fzf.vim
|
||||||
|
3
plugin-confs/neodev.lua
Normal file
3
plugin-confs/neodev.lua
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
require("neodev").setup({
|
||||||
|
-- add any options here, or leave empty to use the default settings
|
||||||
|
})
|
@ -216,11 +216,19 @@ local servers = {
|
|||||||
'dotls', 'dockerls', 'html', 'cssls', 'lua_ls'
|
'dotls', 'dockerls', 'html', 'cssls', 'lua_ls'
|
||||||
}
|
}
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
|
if lsp == 'lua_ls' then
|
||||||
|
lspconfig[lsp].setup {
|
||||||
|
-- on_attach = my_custom_on_attach,
|
||||||
|
capabilities = capabilities,
|
||||||
|
callSnippet = "Replace"
|
||||||
|
}
|
||||||
|
else
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
-- on_attach = my_custom_on_attach,
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
cmp.event:on("menu_opened",
|
cmp.event:on("menu_opened",
|
||||||
function() vim.b.copilot_suggestion_hidden = true end)
|
function() vim.b.copilot_suggestion_hidden = true end)
|
||||||
|
Loading…
Reference in New Issue
Block a user