mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 01:38:40 +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;
|
} // cfg.moduleConfig;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
extraConfigLua = ''
|
extraConfigLua = (optionalString (cfg.parserInstallDir != null) ''
|
||||||
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
|
||||||
'' + optionalString (cfg.parserInstallDir != null) ''
|
|
||||||
vim.opt.runtimepath:append("${cfg.parserInstallDir}")
|
vim.opt.runtimepath:append("${cfg.parserInstallDir}")
|
||||||
|
'') + ''
|
||||||
|
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
||||||
'';
|
'';
|
||||||
|
|
||||||
extraPlugins = with pkgs; if cfg.nixGrammars then
|
extraPlugins = with pkgs; if cfg.nixGrammars then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue