plugins/treesitter-playground: init + tests (#311)

This commit is contained in:
Felix Hilgers 2023-04-05 13:34:20 +02:00 committed by GitHub
parent 250de35e05
commit 30726d49c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 97 additions and 0 deletions

View file

@ -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 = "?";
};
};
};
}