mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-04-22 18:28:42 +02:00
neovim: Enable nvim-cmp support for all language servers
This commit is contained in:
parent
1ff94843d1
commit
0b68a42070
@ -282,7 +282,22 @@ in
|
|||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
|
||||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
-- 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
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
-- on_attach = my_custom_on_attach,
|
||||||
|
Loading…
Reference in New Issue
Block a user