mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lang): add support for helm chart templates
This commit is contained in:
parent
879e29504d
commit
e9691ef300
1 changed files with 22 additions and 0 deletions
22
lua/lazyvim/plugins/extras/lang/helm.lua
Normal file
22
lua/lazyvim/plugins/extras/lang/helm.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
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
|
||||||
|
vim.schedule(function()
|
||||||
|
vim.cmd("LspStop ++force docker_compose_language_service")
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
|
return {
|
||||||
|
"towolf/vim-helm",
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
docker_compose_language_service = {},
|
||||||
|
helm_ls = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue