mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +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)
|
local __lspOnAttach = function(client)
|
||||||
${cfg.onAttach}
|
${cfg.onAttach}
|
||||||
end
|
end
|
||||||
local __lspCapabilities = function
|
local __lspCapabilities = function()
|
||||||
${cfg.capabilities}
|
${cfg.capabilities}
|
||||||
end
|
end
|
||||||
|
|
||||||
for i,server in ipairs(__lspServers) do
|
for i,server in ipairs(__lspServers) do
|
||||||
if type(server) == "string" then
|
if type(server) == "string" then
|
||||||
require('lspconfig')[server].setup {
|
require('lspconfig')[server].setup {
|
||||||
on_attach = __lspOnAttach
|
on_attach = __lspOnAttach,
|
||||||
capabilities = __lspCapabilities
|
capabilities = __lspCapabilities,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
require('lspconfig')[server.name].setup(server.extraOptions)
|
require('lspconfig')[server.name].setup(server.extraOptions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue