mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
Revert "plugins/lsp: use vim.lsp native API"
This reverts commit 78f6ff0369
.
From PR https://github.com/nix-community/nixvim/pull/3204
This commit is contained in:
parent
836994b8bc
commit
3ea2ce7ff6
1 changed files with 7 additions and 6 deletions
|
@ -206,14 +206,15 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
}"}
|
}"}
|
||||||
|
|
||||||
for i, server in ipairs(__lspServers) do
|
for i, server in ipairs(__lspServers) do
|
||||||
|
local options = ${runWrappers cfg.setupWrappers "server.extraOptions"}
|
||||||
|
|
||||||
vim.lsp.enable(server.name)
|
if options == nil then
|
||||||
|
options = __setup
|
||||||
vim.lsp.config(server.name, __setup)
|
else
|
||||||
|
options = vim.tbl_extend("keep", options, __setup)
|
||||||
if server.extraOptions then
|
|
||||||
vim.lsp.config(server.name, server.extraOptions)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require("lspconfig")[server.name].setup(options)
|
||||||
end
|
end
|
||||||
|
|
||||||
${cfg.postConfig}
|
${cfg.postConfig}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue