From c3327f0152d15fa1c38cb00fccb4edb9172a84c8 Mon Sep 17 00:00:00 2001 From: xezo360hye Date: Tue, 6 Aug 2024 12:09:59 +0300 Subject: [PATCH] feat(home): Add neovim keymaps, improve readability --- home/common.nix | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/home/common.nix b/home/common.nix index fe76758..ed842c1 100644 --- a/home/common.nix +++ b/home/common.nix @@ -38,20 +38,36 @@ }; plugins = { - guess-indent.enable = true; + guess-indent = { + enable = true; + }; copilot-lua = { enable = true; - suggestion = { - autoTrigger = true; - keymap = { - accept = ""; - acceptLine = ""; - acceptWord = ""; - }; + suggestion.autoTrigger = true; + suggestion.keymap = { + accept = ""; + acceptLine = ""; + acceptWord = ""; }; }; }; + + keymaps = [ + { + mode = "n"; + key = ";"; + action = ":"; + } + { + mode = "n"; + key = ""; + action = "nohlsearch"; + options = { + silent = true; + }; + } + ]; }; mpv = {