hmts.nvim icon indicating copy to clipboard operation
hmts.nvim copied to clipboard

Explicit annotation changes 'gc' command in rest of file

Open surbliss opened this issue 1 year ago • 2 comments

When I annotate a string (eg. a neovim-plugin's config with /* lua */, I get proper syntax highlighting only for that string, but now in all of the rest of the file whenever I use gc<motion>, neovim adds -- rather than # in the rest of the file, i.e. the Lua comment-string rather than the Nix comment-string.

surbliss avatar Oct 13 '24 16:10 surbliss

Is this happening on a specific nvim version? I can't reproduce it myself on the latest stable or the latest nightly.

calops avatar Dec 19 '24 14:12 calops

I think it happened both on version 0.10 and 0.11, but I think this might be a problem with treesitter-injections, and not this plugin. Other people have had similar issues: https://github.com/nvim-treesitter/nvim-treesitter/issues/2652

surbliss avatar Dec 28 '24 22:12 surbliss