mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 12:19:26 +00:00
[neovim] Fix yaml-companion
This commit is contained in:
@ -33,18 +33,20 @@ require("mason-lspconfig").setup({
|
||||
|
||||
local lspconfig = require("lspconfig")
|
||||
for _, server in pairs(servers) do
|
||||
local opts = {
|
||||
on_attach = require("plugins.lsp.handlers").on_attach,
|
||||
capabilities = require("plugins.lsp.handlers").capabilities,
|
||||
}
|
||||
if server ~= "yamlls" then
|
||||
local opts = {
|
||||
on_attach = require("plugins.lsp.handlers").on_attach,
|
||||
capabilities = require("plugins.lsp.handlers").capabilities,
|
||||
}
|
||||
|
||||
server = vim.split(server, "@")[1]
|
||||
server = vim.split(server, "@")[1]
|
||||
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
local config_exists, conf_opts = pcall(require, "plugins.lsp.settings." .. server)
|
||||
if config_exists then
|
||||
opts = vim.tbl_deep_extend("force", conf_opts, opts)
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
||||
local config_exists, conf_opts = pcall(require, "plugins.lsp.settings." .. server)
|
||||
if config_exists then
|
||||
opts = vim.tbl_deep_extend("force", conf_opts, opts)
|
||||
end
|
||||
|
||||
lspconfig[server].setup(opts)
|
||||
end
|
||||
|
||||
lspconfig[server].setup(opts)
|
||||
end
|
||||
|
Reference in New Issue
Block a user