-
Hi, New user here trying to move my vim config into nixvim and I can say it's been quite fun. I trying to use a custom folds query for python as I find the default one to be folding way too much. The treesitter manual says:
extraFiles = {
"queries/python/folds.scm".source = ./python_folds.scm;
}; The file indeed then show up at the expected place in I added to my config extraConfigLua = ''
vim.opt.runtimepath:prepend("/home/emilen/.config/nvim")
''; and then get the my custom folding working. The bit that surpised me is that lua/injection.scm query inserted by nix vim at the same place seems to just work fine. I'm mostly wondering if there is a cleaner way to do that? Quite new to nix and neovim so I'm not quite sure if this is a bug and how it would be best to fix it. Shoud nixvim put the config folder first in the runtime path? I'm not sure what are the other implication of that. Maybe a option to define those query in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Here was my solution: #540 (comment) |
Beta Was this translation helpful? Give feedback.
-
How to use I got error when defining it in treesitter. :(
|
Beta Was this translation helpful? Give feedback.
You need to add
;; extends
to the query file, see:nixvim/plugins/languages/treesitter/treesitter.nix
Line 318 in 820f8d5