m4xshen/autoclose.nvim

Make it possible to correct close the double string like /*

Closed this issue · 1 comments

I'd like to use you awesome plugin to autoclose the inline block comments in typescript/js. eg

/* this is the comment */

But when I added the config

          ["/*"] = {
            escape = true,
            close = true,
            pair = "/**/",
            enabled_filetypes = { "typescript", "typescriptreact", "javascript", "javascriptreact" }
          },

Auto pair works incorrectly because when it adds a pair cursor is moved to the last character /**{here}/ instead of /*{here}*/

Screen.Recording.2023-08-28.at.13.02.39.mov

Same as #23. I'll fix this soon.