update keymaps

This commit is contained in:
♥ Minnie ♥ 2025-05-16 21:03:22 +08:00
parent a6f234cc57
commit c2227b86a2
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
7 changed files with 85 additions and 25 deletions

View file

@ -17,7 +17,7 @@
{
# goto next buffer
mode = ["n"];
key = "<leader>bn";
key = "]b";
action = ":bnext<cr>";
options = {
silent = true;
@ -27,7 +27,7 @@
{
# goto previous buffer
mode = ["n"];
key = "<leader>bp";
key = "[b";
action = ":bprevious<cr>";
options = {
silent = true;

View file

@ -19,25 +19,23 @@
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
};
# Refactor modules for nvim-treesitter
plugins.treesitter-refactor = {
enable = true;
# Highlights definitions and usages.
highlightDefinitions = {
enable = true;
};
# Provides "go to usage"
navigation = {
enable = true;
keymaps = {
gotoNextUsage = "<leader>n";
gotoPreviousUsage = "<leader>N";
};
};
smartRename = {
enable = true;
# Go to the next / previous usage.
keymaps = {
smartRename = "<leader>r";
gotoNextUsage = "]u";
gotoPreviousUsage = "[u";
};
};
};