mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 02:38:38 +02:00
plugins/treesitter: re-organize treesitter plugins
This commit is contained in:
parent
f79dccdc2e
commit
ff791d20c8
7 changed files with 12 additions and 8 deletions
|
@ -0,0 +1,29 @@
|
|||
{pkgs}: {
|
||||
empty = {
|
||||
plugins.treesitter.enable = true;
|
||||
plugins.treesitter-playground.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.treesitter.enable = true;
|
||||
plugins.treesitter-playground = {
|
||||
enable = true;
|
||||
|
||||
disabledLanguages = [];
|
||||
updateTime = 25;
|
||||
persistQueries = false;
|
||||
keybindings = {
|
||||
toggleQueryEditor = "o";
|
||||
toggleHlGroups = "i";
|
||||
toggleInjectedLanguages = "t";
|
||||
toggleAnonymousNodes = "a";
|
||||
toggleLanguageDisplay = "I";
|
||||
focusLanguage = "f";
|
||||
unfocusLanguage = "F";
|
||||
update = "R";
|
||||
gotoNode = "<cr>";
|
||||
showHelp = "?";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{pkgs}: {
|
||||
empty = {
|
||||
plugins.treesitter.enable = true;
|
||||
};
|
||||
|
||||
nonix = {
|
||||
# TODO: See if we can build parsers (legacy way)
|
||||
tests.dontRun = true;
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
nixGrammars = false;
|
||||
};
|
||||
};
|
||||
|
||||
# This needs a custom input
|
||||
# custom = {
|
||||
# plugins.treesitter = {
|
||||
# enable = true;
|
||||
# nixGrammars = true;
|
||||
# grammarPackages = [
|
||||
# (build-ts.lib.buildGrammar pkgs {
|
||||
# language = "gleam";
|
||||
# version = "0.25.0";
|
||||
# source = gleam;
|
||||
# })
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue