mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
fix nvim-lsp #7
This commit is contained in:
parent
ea8a0f5c01
commit
4f796070f9
1 changed files with 3 additions and 3 deletions
|
@ -59,15 +59,15 @@ in
|
|||
local __lspOnAttach = function(client)
|
||||
${cfg.onAttach}
|
||||
end
|
||||
local __lspCapabilities = function
|
||||
local __lspCapabilities = function()
|
||||
${cfg.capabilities}
|
||||
end
|
||||
|
||||
for i,server in ipairs(__lspServers) do
|
||||
if type(server) == "string" then
|
||||
require('lspconfig')[server].setup {
|
||||
on_attach = __lspOnAttach
|
||||
capabilities = __lspCapabilities
|
||||
on_attach = __lspOnAttach,
|
||||
capabilities = __lspCapabilities,
|
||||
}
|
||||
else
|
||||
require('lspconfig')[server.name].setup(server.extraOptions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue