From 9aa4d56df8828d350d3c35f65bdbf4920bd03223 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Tue, 28 Jan 2025 08:50:57 +0000 Subject: [PATCH] :sparkles: set vim leader to ',' and map ',w' to save --- nixos/neovim.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/neovim.nix b/nixos/neovim.nix index 0eda250..d9f3ccd 100644 --- a/nixos/neovim.nix +++ b/nixos/neovim.nix @@ -11,6 +11,7 @@ set go=a set mouse=a set nohlsearch + let mapleader="," lua << EOF local config_file = os.getenv("HOME")..'/.local/share/nvim_color_scheme' @@ -53,6 +54,9 @@ " Replace-all is aliased to S. nnoremap S :%s//g + " save file with ,w + map w :w + " spellcheck set spell spelllang=en_us setlocal spell! spelllang=en_us