yorik1984 / newpaper.nvim

🎨 Newpaper colorscheme for NeoVim written in Lua with built-in support for native LSP, TreeSitter and many more plugins
GNU General Public License v2.0
82 stars 6 forks source link

newpaper causes error in treesitter #11

Closed p-mackay closed 4 weeks ago

p-mackay commented 4 weeks ago

Running :checkhealth nvim-treesitter . . . The following errors have been detected: ~

yorik1984 commented 4 weeks ago

try :TSUpdate vimdoc

p-mackay commented 4 weeks ago

I'm using https://github.com/nvim-lua/kickstart.nvim not sure if this error happens with the default config. I haven't changed much in this config. Output of the command says parser's are up to date. When I run any command I get the following error: stack traceback: [C]: in function '_ts_parse_query' /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn' /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn' /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get' /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:28: in function 'new' /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:243: in function 'get_query' /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:191: in function 'fn' /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:491: in function 'for_each_tree' /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:178: in function 'prepare_highlight_states' /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:405: in f Error in decoration provider treesitter/highlighter.win: Error executing lua: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 84:4. Invalid node type "delimiter": (delimiter) @markup.raw.delimiter ^

yorik1984 commented 4 weeks ago

https://github.com/neovim/tree-sitter-vimdoc/commit/1b177bd9f53995dac83616e84b552a8d4f6c5f7e#diff-19f4fcfba4f0bf0e329d560db476e0fa05262df4c1d6e18c728bc26da754537aR16 Node type "delimiter" was added a few months ago. Maybe you use old version of some files? What neovim version?

p-mackay commented 4 weeks ago

Yes thank you, I did rm -rf ~/.local/share/nvim/ then lazy re-installed everything. Not getting the error anymore.