From 331ebaef26fe91288b90f19120eb8f4ecb214cbd Mon Sep 17 00:00:00 2001 From: Nicolas Goudry Date: Mon, 10 Jun 2024 18:35:15 +0200 Subject: [PATCH] refactor(plugins): move incremental selection keymaps to "l" prefix --- plugins/treesitter.nix | 16 ++++++++-------- plugins/which-key.nix | 1 - 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/plugins/treesitter.nix b/plugins/treesitter.nix index db99899..ddb4fc5 100644 --- a/plugins/treesitter.nix +++ b/plugins/treesitter.nix @@ -39,27 +39,27 @@ } { mode = "n"; - key = "ss"; + key = "ls"; action.__raw = "function() require('nvim-treesitter.incremental_selection').init_selection() end"; - options.desc = "Start"; + options.desc = "Start incremental selection"; } { mode = "v"; - key = "sd"; + key = "ld"; action.__raw = "function() require('nvim-treesitter.incremental_selection').node_decremental() end"; - options.desc = "Decrement"; + options.desc = "Decrement node selection"; } { mode = "v"; - key = "si"; + key = "li"; action.__raw = "function() require('nvim-treesitter.incremental_selection').node_incremental() end"; - options.desc = "Increment node"; + options.desc = "Increment node selection"; } { mode = "v"; - key = "sc"; + key = "lc"; action.__raw = "function() require('nvim-treesitter.incremental_selection').scope_incremental() end"; - options.desc = "Increment scope"; + options.desc = "Increment scope selection"; } ]; diff --git a/plugins/which-key.nix b/plugins/which-key.nix index d715a5f..937cad4 100644 --- a/plugins/which-key.nix +++ b/plugins/which-key.nix @@ -23,7 +23,6 @@ "f".name = "${icons.Search} Find"; "g".name = "${icons.Git} Git"; "l".name = "${icons.ActiveLSP} Language Tools"; - "s".name = " Incremental Selection"; "S".name = "${icons.Session} Session"; "t".name = "${icons.Terminal} Terminal"; "u".name = "${icons.Window} UI/UX";