From 6c6a7e116589cf913d741e3207c4d75666638bba Mon Sep 17 00:00:00 2001 From: Jens Nolte <jens@nightmarestudio.de> Date: Tue, 26 May 2020 22:23:25 +0200 Subject: [PATCH] neovim: Add spellcheck binding --- pkgs/neovim/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/neovim/default.nix b/pkgs/neovim/default.nix index a6aa153..9fe8260 100644 --- a/pkgs/neovim/default.nix +++ b/pkgs/neovim/default.nix @@ -125,6 +125,10 @@ pkgs.neovim.override { " <Leader>n clears the last search highlighting. nnoremap <Leader>n <Cmd>nohlsearch<CR> vnoremap <Leader>n <Cmd>nohlsearch<CR> + + " Shortcut to enable spellcheck (requires aspell installation) + nnoremap <Leader>s <Cmd>setlocal spell spelllang=en_us<CR> + ''; packages.myVimPackage = with pkgs.vimPlugins; { start = [ -- GitLab