From aa51a62839f0c5c7e708de494946324ba3e9a30c Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Wed, 7 Aug 2024 11:45:37 -0300 Subject: [PATCH] A few minor tweaks while I have this open --- home-manager/traverseda/home.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/home-manager/traverseda/home.nix b/home-manager/traverseda/home.nix index 01ffc14..a150b90 100644 --- a/home-manager/traverseda/home.nix +++ b/home-manager/traverseda/home.nix @@ -126,17 +126,18 @@ ''; }; sources = [ - {name = "path";} + {name = "copilot";} {name = "nvim_lsp";} + {name = "path";} {name = "buffer";} {name = "treesitter";} - {name = "copilot";} {name = "bash";} ]; }; }; plugins.indent-blankline.enable = true; plugins.lsp-format.enable = true; + plugins.commentary.enable = true; plugins.lsp = { enable = true; }; @@ -193,6 +194,13 @@ globals.mapleader = " "; keymaps = [ + { + #Clear the search buffer when I press esc twice + mode = ["n" "t"]; + key = ""; + options = { noremap = true; desc = "Clear search"; }; + action = ":nohlsearch"; + } { mode = ["n" "t"]; key = "c";