mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15: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
|
||||
local options = ${runWrappers cfg.setupWrappers "server.extraOptions"}
|
||||
|
||||
vim.lsp.enable(server.name)
|
||||
|
||||
vim.lsp.config(server.name, __setup)
|
||||
|
||||
if server.extraOptions then
|
||||
vim.lsp.config(server.name, server.extraOptions)
|
||||
if options == nil then
|
||||
options = __setup
|
||||
else
|
||||
options = vim.tbl_extend("keep", options, __setup)
|
||||
end
|
||||
|
||||
require("lspconfig")[server.name].setup(options)
|
||||
end
|
||||
|
||||
${cfg.postConfig}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue