Skip to content

Commit

Permalink
feat(helm): add mason-tool-installer config
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 8, 2024
1 parent 499772b commit 3ef290e
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions lua/astrocommunity/pack/helm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,13 @@ return {
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, "helm_ls")

local configs = require "lspconfig.configs"
local lspconfig = require "lspconfig"
local util = require "lspconfig.util"

if not configs.helm_ls then
configs.helm_ls = {
default_config = {
cmd = { "helm_ls", "serve" },
filetypes = { "helm" },
root_dir = function(fname) return util.root_pattern "Chart.yaml"(fname) end,
},
}
end

lspconfig.helm_ls.setup {
filetypes = { "helm" },
cmd = { "helm_ls", "serve" },
}
end,
},
{
"WhoIsSethDaniel/mason-tool-installer.nvim",
optional = true,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, "helm-ls")
end,
},
{
Expand Down

0 comments on commit 3ef290e

Please sign in to comment.