devconf/.config/nvim/init.vim
2021-08-29 20:20:36 +02:00

15 lines
361 B
VimL

source ~/.vimrc
lua << EOF
local nvim_lsp = require('lspconfig')
local on_attach = require'completion'.on_attach
local servers = { "html", "clangd", "vimls", "vuels", "phpactor", "rust_analyzer", "tsserver" }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,
flags = {
debounce_text_changes = 150,
}
}
end
EOF