dvdsk / prosesitter.nvim

A (work in progress) grammar, spelling and style plugin for Neovim
MIT License
25 stars 0 forks source link

Latex brackets, parenthesis etc not passed to spellchecker #36

Closed dvdsk closed 2 years ago

dvdsk commented 2 years ago

example:

\documentclass{article}
\begin{document}

this [I] to {capture} this
hello (test) \{\{hi\}\}

\end{document}

text passed: this I to capture this hello test hi

dvdsk commented 2 years ago

not fixing as spell/grammar does not seem to need the brackets and it makes the TS query significantly more complex, especially when having nested brackets. Single brackets are mistaken by the parser to be command starts so { hi will never work

dvdsk commented 2 years ago

for future reference this works as query: [ (mixed_group(text)) (text)] @capture