Skip to content

Commit 8b968d2

Browse files
committed
feat: add comment
1 parent c72fe67 commit 8b968d2

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## v1.4.0 (2026-02-22)
4+
5+
- ✨ Change comment for Textwire to be `{{-- %s --}}` if you trigger comment when your cursor is on Textwire code.
6+
37
## v1.3.0 (2026-02-15)
48

59
- ✨ Added Textwire file icon when users use `nvim-web-devicons` or `mini.icons` plugin.

plugin/init.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,11 @@ parser_config.textwire = {
2424

2525
require("textwire.icon").set_icon()
2626
require("textwire.lsp").attach()
27+
28+
-- Change comment for Textwire
29+
vim.api.nvim_create_autocmd("FileType", {
30+
pattern = "textwire",
31+
callback = function()
32+
vim.bo.commentstring = "{{-- %s --}}"
33+
end,
34+
})

0 commit comments

Comments
 (0)