mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(helm): stop yaml & docker compose lsp on helm file types
Revert disabling `autostart` since that kills the LSP globally even when opening a standard yaml file, like GitHub Workflow file.
This commit is contained in:
parent
3225818acd
commit
b5e1873b8a
1 changed files with 10 additions and 3 deletions
|
|
@ -2,7 +2,14 @@ require("lazyvim.util").lsp.on_attach(function(client, buffer)
|
|||
if client.name == "docker_compose_language_service" then
|
||||
if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then
|
||||
vim.schedule(function()
|
||||
vim.cmd("LspStop ++force docker_compose_language_service yamlls")
|
||||
vim.cmd("LspStop ++force docker_compose_language_service")
|
||||
end)
|
||||
end
|
||||
end
|
||||
if client.name == "yamlls" then
|
||||
if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then
|
||||
vim.schedule(function()
|
||||
vim.cmd("LspStop ++force yamlls")
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
@ -14,8 +21,8 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
yamlls = { autostart = false },
|
||||
docker_compose_language_service = { autostart = false },
|
||||
yamlls = {},
|
||||
docker_compose_language_service = {},
|
||||
helm_ls = {},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue