mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(helm): stop yamlls and disable autostart
This commit is contained in:
parent
e9691ef300
commit
3225818acd
1 changed files with 5 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
require("lazyvim.util.lsp").on_attach(function(client, buffer)
|
||||
require("lazyvim.util").lsp.on_attach(function(client, buffer)
|
||||
if client.name == "docker_compose_language_service" then
|
||||
if vim.api.nvim_buf_get_option(buffer, "filetype") == "helm" then
|
||||
if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then
|
||||
vim.schedule(function()
|
||||
vim.cmd("LspStop ++force docker_compose_language_service")
|
||||
vim.cmd("LspStop ++force docker_compose_language_service yamlls")
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
@ -14,7 +14,8 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
docker_compose_language_service = {},
|
||||
yamlls = { autostart = false },
|
||||
docker_compose_language_service = { autostart = false },
|
||||
helm_ls = {},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue