mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
treesitter: change default value for parserInstallDir (#117)
* plugins/languages/treesitter: change default value for parserInstallDir * better document parserInstallDir Co-authored-by: Pedro Alves <pta2002@pta2002.com>
This commit is contained in:
parent
5c6ba55f8a
commit
20d47fb283
1 changed files with 10 additions and 3 deletions
|
@ -23,8 +23,15 @@ in
|
|||
|
||||
parserInstallDir = mkOption {
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
description = "Location of the parsers to be installed by the plugin (only needed when nixGrammars is disabled)";
|
||||
default =
|
||||
if cfg.nixGrammars
|
||||
then null
|
||||
else "$XDG_DATA_HOME/nvim/treesitter"
|
||||
;
|
||||
description = ''
|
||||
Location of the parsers to be installed by the plugin (only needed when nixGrammars is disabled).
|
||||
This default might not work on your own install, please make sure that $XDG_DATA_HOME is set if you want to use the default. Otherwise, change it to something that will work for you!
|
||||
'';
|
||||
};
|
||||
|
||||
ignoreInstall = mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue