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

@ -204,6 +204,9 @@
- Added Makefile support via `languages.make`.
- Fix `languages.hcl` init, depending on `comment-nvim` by checking if it is
enabled. Fixes a crash (#1350).
- Added Debugging support to `languages.php`.
- Added Formatting support to `languages.php` via

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 {