language/hcl: fix #1350 (#1405)

This commit is contained in:
Snoweuph 2026-02-18 12:06:34 +01:00 committed by GitHub
commit 0c4fecd6d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View file

@ -76,9 +76,14 @@ in {
end
})
local ft = require('Comment.ft')
ft
.set('hcl', '#%s')
${
if config.vim.comments.comment-nvim.enable
then ''
local ft = require('Comment.ft')
ft.set('hcl', '#%s')
''
else ""
}
'';
}
(mkIf cfg.treesitter.enable {