Skip to content

Commit

Permalink
feat(editor): add treesitter context, selection and movement
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyxels committed Dec 4, 2024
1 parent 67d4b3e commit 9c2758e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@
indent.enable = true;
};
};
treesitter-context = {
enable = true;
settings.max_lines = 2;
};
treesitter-textobjects = {
enable = true;
select = {
enable = true;
keymaps = {
"af" = "@function.outer";
"if" = "@function.inner";
};
};
move = {
enable = true;
gotoNextStart = {"]f" = "@function.outer";};
gotoPreviousStart = {"[f" = "@function.outer";};
};
};

nvim-surround.enable = true;

Expand Down

0 comments on commit 9c2758e

Please sign in to comment.