neovim: Enable nvim-cmp support for all language servers

This commit is contained in:
Donovan Glover 2023-12-03 16:10:42 -05:00
parent 1ff94843d1
commit 0b68a42070
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -282,7 +282,22 @@ in
local lspconfig = require('lspconfig')
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
local servers = { 'clangd', 'rust_analyzer', 'pyright', 'tsserver' }
local servers = {
'nil_ls',
'rust_analyzer',
'marksman',
'gopls',
'lua_ls',
'clangd',
'texlab',
'crystalline',
'emmet_language_server',
'denols',
'tsserver',
'astro',
'typst_lsp'
}
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
-- on_attach = my_custom_on_attach,