More language servers
This commit is contained in:
parent
828a94da2e
commit
fc99bab98d
1 changed files with 5 additions and 1 deletions
6
init.lua
6
init.lua
|
|
@ -140,9 +140,12 @@ end
|
||||||
local servers = {
|
local servers = {
|
||||||
'clangd',
|
'clangd',
|
||||||
'gopls',
|
'gopls',
|
||||||
|
'jsonls',
|
||||||
'kotlin_language_server',
|
'kotlin_language_server',
|
||||||
|
'marksman',
|
||||||
'rust_analyzer',
|
'rust_analyzer',
|
||||||
'texlab',
|
'texlab',
|
||||||
|
'tflint',
|
||||||
'tsserver',
|
'tsserver',
|
||||||
'pylsp'
|
'pylsp'
|
||||||
}
|
}
|
||||||
|
|
@ -163,7 +166,7 @@ g.ale_linters = {
|
||||||
html = {'tidy'},
|
html = {'tidy'},
|
||||||
javascript = {'eslint'},
|
javascript = {'eslint'},
|
||||||
python = {'flake8', 'isort'},
|
python = {'flake8', 'isort'},
|
||||||
terraform = {'tflint'},
|
terraform = {},
|
||||||
tex = {},
|
tex = {},
|
||||||
typescript = {},
|
typescript = {},
|
||||||
vim = {'vint'},
|
vim = {'vint'},
|
||||||
|
|
@ -209,6 +212,7 @@ cmp.setup({
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
--cmd [[autocmd FileType *\(TelescopePrompt\)\@<! lua require'completion'.on_attach()]]
|
--cmd [[autocmd FileType *\(TelescopePrompt\)\@<! lua require'completion'.on_attach()]]
|
||||||
|
|
||||||
-- Setup lspconfig.
|
-- Setup lspconfig.
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
lsp.util.default_config = vim.tbl_deep_extend(
|
lsp.util.default_config = vim.tbl_deep_extend(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue