mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(helm): remove docker compose lsp overrides
Since docker compose LSP does not seem to be triggered or started by opening *.yaml helm files, the config overrides were removed to simplify Helm config.
This commit is contained in:
parent
b5e1873b8a
commit
6a9e097bd2
1 changed files with 1 additions and 9 deletions
|
|
@ -1,11 +1,4 @@
|
||||||
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_get_option_value("filetype", { buf = buffer }) == "helm" then
|
|
||||||
vim.schedule(function()
|
|
||||||
vim.cmd("LspStop ++force docker_compose_language_service")
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if client.name == "yamlls" then
|
if client.name == "yamlls" then
|
||||||
if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then
|
if vim.api.nvim_get_option_value("filetype", { buf = buffer }) == "helm" then
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
|
|
@ -16,13 +9,12 @@ require("lazyvim.util").lsp.on_attach(function(client, buffer)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"towolf/vim-helm",
|
{ "towolf/vim-helm", ft = "helm" },
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
yamlls = {},
|
yamlls = {},
|
||||||
docker_compose_language_service = {},
|
|
||||||
helm_ls = {},
|
helm_ls = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue