Skip to content

Commit

Permalink
fix: check if helm parser is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Nov 15, 2024
1 parent 7095f9a commit c6d1a49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/helm-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ M.setup = function(args)
return
end

-- Create the autocommand group "ConcealWithLsp"
local group_id = vim.api.nvim_create_augroup("ConcealWithLsp", { clear = true })
local parsers = require("nvim-treesitter.parsers")
if not parsers.has_parser("helm") then
return
end

local group_id = vim.api.nvim_create_augroup("helm-ls.nvim", { clear = true })

-- Define file patterns as constants
local file_patterns = { "*.yaml", "*.yml", "*.helm", "*.tpl" }
Expand Down

0 comments on commit c6d1a49

Please sign in to comment.