Could not create parser dir. (LazyVim) #328
-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Hmm it shouldn't be trying to create one at all, you have auto_install off and are installing them through nix probably. I'll take a look at this somewhat soon. It would be an issue with the lazyvim template though, the ones that don't use lazy.nvim don't have such issues. |
Beta Was this translation helpful? Give feedback.
-
|
I'm trying to pinpoint it. It yields me an error if I enabled one of these 3 plugins. This is my flake. |
Beta Was this translation helpful? Give feedback.
-
|
Hmmmm Well, you have all the grammars installed via nix already. The issue is that it is trying to install it again. Also, the default parser install dir is inside the plugin which is inside the store. What is weird though is that it isn't respecting our settings. I have 3.5 ideas to help right now. Hopefully one or both of the first 2 solve the problem, if so there are some easy improvements I can make to the template. But if not, choose one of the other 2. Hopefully, this also explains what is going on. 1. (edit: apparently not this one)I am curious, what happens when you do the following? -- List of parsers to ignore installing (or "all")
ignore_install = { "all" },or maybe just -- List of parsers to ignore installing (or "all")
ignore_install = "all",idk its not clear which from the nvim-treesitter docs, but this should prevent it from trying to install any itself? The issue is that they are added via nix not treesitter, so they are just on the runtime path. So treesitter does not know that they are there, and 2:lazy.nvim merges specs. I think in order. What happens if you move the { import = "lazyvim.plugins.extras.lang.git" },
{ import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.lang.nix" },Up a few lines to be above nvim-treesitter? Then the settings you set in your nvim-treesitter spec should override any additions they may add. 3: If those don't workBy default, nvim-treesitter tries to install stuff into its own path. It is currently in the nix store. You can change where it tries to install things to. Point it somewhere outside of the store. Unfortunately this means some might get installed twice so I am hoping you can just do So, as an extra to that, if you wanted to avoid the 3 or so parsers being installed twice: You could install Then remove the 3.5:sorta like 3 above, by default, nvim-treesitter tries to install stuff into its own path. You can change this by downloading it by lazy.nvim instead, which will put it somewhere outside of the store. If you do that, remove They will probably fail. So you will need to install Then allow nvim-treesitter to manage them. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @BirdeeHub Ignore install didn't work, i tried the different formats with no luck. Appreciate the top tier support, and the great read it gave me some insight of inner workings. :-) |
Beta Was this translation helpful? Give feedback.

Hmmmm
Well, you have all the grammars installed via nix already. The issue is that it is trying to install it again. Also, the default parser install dir is inside the plugin which is inside the store. What is weird though is that it isn't respecting our settings.
I have 3.5 ideas to help right now. Hopefully one or both of the first 2 solve the problem, if so there are some easy improvements I can make to the template. But if not, choose one of the other 2. Hopefully, this also explains what is going on.
1. (edit: apparently not this one)
I am curious, what happens when you do the following?
or maybe just
…