mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
plugins/languages/treesitter: fixed parsers installation when not using nixGrammars (#116)
This commit is contained in:
parent
20d47fb283
commit
b9a4f0ca19
1 changed files with 3 additions and 3 deletions
|
@ -119,10 +119,10 @@ in
|
|||
} // cfg.moduleConfig;
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
extraConfigLua = ''
|
||||
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
||||
'' + optionalString (cfg.parserInstallDir != null) ''
|
||||
extraConfigLua = (optionalString (cfg.parserInstallDir != null) ''
|
||||
vim.opt.runtimepath:append("${cfg.parserInstallDir}")
|
||||
'') + ''
|
||||
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
||||
'';
|
||||
|
||||
extraPlugins = with pkgs; if cfg.nixGrammars then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue