2021-03-21 16:18:51 +00:00
|
|
|
source ~/.vimrc
|
2021-08-29 18:41:41 +00:00
|
|
|
|
|
|
|
|
2021-03-21 17:20:16 +00:00
|
|
|
lua << EOF
|
|
|
|
local nvim_lsp = require('lspconfig')
|
2021-08-29 18:20:36 +00:00
|
|
|
local on_attach = require'completion'.on_attach
|
2021-08-29 16:37:58 +00:00
|
|
|
local servers = { "html", "clangd", "vimls", "vuels", "phpactor", "rust_analyzer", "tsserver" }
|
2021-08-29 18:20:36 +00:00
|
|
|
|
2021-03-21 17:20:16 +00:00
|
|
|
for _, lsp in ipairs(servers) do
|
2021-08-29 16:37:58 +00:00
|
|
|
nvim_lsp[lsp].setup {
|
2021-08-29 18:41:41 +00:00
|
|
|
on_attach = require'completion'.on_attach,
|
2021-08-29 16:37:58 +00:00
|
|
|
flags = {
|
|
|
|
debounce_text_changes = 150,
|
|
|
|
}
|
|
|
|
}
|
2021-03-21 17:20:16 +00:00
|
|
|
end
|
|
|
|
EOF
|
2021-08-29 18:41:41 +00:00
|
|
|
|
|
|
|
|