Added tresitter module and other misc updates
This commit is contained in:
parent
21febe9eef
commit
c189da135d
6 changed files with 85 additions and 35 deletions
23
config/plugins/treesitter.nix
Normal file
23
config/plugins/treesitter.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Use treesitter's indenting
|
||||
opts.autoindent = false;
|
||||
|
||||
plugins.treesitter-context.enable = true;
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight.enable = true;
|
||||
incremental_selection = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
init_selection = "<CR>";
|
||||
node_decremental = "<CR>";
|
||||
node_incremental = "<TAB>";
|
||||
scope_incremental = "<S-TAB>";
|
||||
};
|
||||
};
|
||||
indent.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue