diff --git a/pkgs/neovim/default.nix b/pkgs/neovim/default.nix index a6aa153a34923c08aab268d3e200534d3d5a594a..9fe826040a8e07da8859d18cf1358a108bb41ce6 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 = [