Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight Error with Nix code. #126

Open
usmcamp0811 opened this issue Jan 16, 2025 · 0 comments
Open

Highlight Error with Nix code. #126

usmcamp0811 opened this issue Jan 16, 2025 · 0 comments

Comments

@usmcamp0811
Copy link

I hope this is the correct place to report this.. but I have what I think is a bug with the highlighter when it sees things like this:

            in entry == "regular" && builtins.match ".*default\\.nix$" name != null)

I get this error:

Error in decoration provider treesitter/highlighter.win:                                                                                                                         
Error executing lua: ...d-0.10.3/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 9:4. Invalid node type "<":                                                 
  "<"                                                                                                                                                                            
   ^                                                                                                                                                                             
                                                                                                                                                                                 
stack traceback:                                                                                                                                                                 
        [C]: in function '_ts_parse_query'                                                                                                                                       
        ...d-0.10.3/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn'                                                                                        
        ...pped-0.10.3/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn'                                                                                         
        ...pped-0.10.3/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get'                                                                                        
        ....3/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:28: in function 'new'                                                                                        
        ....3/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:243: in function 'get_query'                                                                                 
        ....3/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:191: in function 'fn'                                                                                        
        ...3/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:491: in function 'for_each_tree'                                                                             
        ...3/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:495: in function 'for_each_tree'                                                                             
        ...3/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:495: in function 'fo                                                                                         
Press ENTER or type command to continue   

My vim config can be run with nix run gitlab:usmcamp0811/campground-nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant