From bb97adbf0e81cc591c0f67c0b88a476f25a2fe17 Mon Sep 17 00:00:00 2001 From: harry123 Date: Wed, 12 Mar 2025 23:03:04 +0100 Subject: [PATCH] more keybindings!! --- config/config.nix | 1 + config/keys.nix | 23 +++++++++++++++++++++++ config/plugins.nix | 6 ++++++ 3 files changed, 30 insertions(+) diff --git a/config/config.nix b/config/config.nix index 0c7e5db..7772461 100644 --- a/config/config.nix +++ b/config/config.nix @@ -20,4 +20,5 @@ }; globals.mapleader = " "; + } diff --git a/config/keys.nix b/config/keys.nix index da2e4b9..3f80506 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -10,5 +10,28 @@ }; } + # barbar.nvim + { + mode = "n"; + action = "BufferClose"; + key = ""; + options = { + desc = "Close buffer"; + }; + } + + { + mode = "n"; + action = "BufferOrderByName"; + key = "sn"; + options = { + desc = "Sort buffer tabs by name"; + }; + } ]; + + plugins.fzf-lua.keymaps = { + "" = "live_grep"; + "fg" = "git_files"; + }; } diff --git a/config/plugins.nix b/config/plugins.nix index f419ae7..ed1c67a 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -4,6 +4,7 @@ pkgs, ... }: + { plugins = { lsp = { @@ -91,5 +92,10 @@ }; lsp-lines.enable = true; + + which-key = { + enable = true; + }; }; + }