You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the close tag not working in javascriptreact and typescriptreact file types. File name is xx.jsx or xx.tsx.
After explicitly changing file type to tsx or jsx, or even some nonsense words "haha", everything works again.
It seems like if my region is invalid or empty, then the autoclose works well, if I really input a valid region, then things breaks
I'm using nvim0.5 with native lsp configs, plugins: nvim-treesitter, nvim-lspconfig
Debug Info: synstack is empty list,
let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.erb,*.jsx,*.tsx"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.tsx'
let g:closetag_filetypes = 'html,xhtml,phtml,jsx,tsx,javascript,javascriptreact,typescriptreact'
let g:closetag_xhtml_filetypes = 'xhtml,javascript.jsx,jsx,tsx,javascriptreact,typescriptreact'
let g:closetag_emptyTags_caseSensitive = 1
" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ 'typescriptreact': 'jsxRegion,tsxRegion',
\ 'javascriptreact': 'jsxRegion',
\ }
" Shortcut for closing tags, default is '>'
"
let g:closetag_shortcut = '>'
" Add > at current position without closing the current tag, default is ''
"
let g:closetag_close_shortcut = '<leader>>'
The text was updated successfully, but these errors were encountered:
I found the close tag not working in javascriptreact and typescriptreact file types. File name is xx.jsx or xx.tsx.
After explicitly changing file type to tsx or jsx, or even some nonsense words "haha", everything works again.
It seems like if my region is invalid or empty, then the autoclose works well, if I really input a valid region, then things breaks
I'm using nvim0.5 with native lsp configs, plugins: nvim-treesitter, nvim-lspconfig
Debug Info:
synstack is empty list,
The text was updated successfully, but these errors were encountered: