Add split navigation shortcuts to neovim

This commit is contained in:
Elnu 2023-01-10 11:23:27 -08:00
parent dfdd19fbce
commit ce6094dd60
3 changed files with 14 additions and 9 deletions

View file

@ -5,7 +5,7 @@ let
in in
{ {
imports = [ imports = [
../neovim.nix ../neovim
../ranger.nix ../ranger.nix
../fcitx5 ../fcitx5
../picom.nix ../picom.nix

View file

@ -7,13 +7,6 @@
vimAlias = true; vimAlias = true;
defaultEditor = true; defaultEditor = true;
plugins = with pkgs.vimPlugins; [ vim-nix ]; plugins = with pkgs.vimPlugins; [ vim-nix ];
extraConfig = '' extraConfig = builtins.readFile ./vimrc;
" Temporary configuration for editing Nix files
syntax on
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
'';
}; };
} }

12
neovim/vimrc Normal file
View file

@ -0,0 +1,12 @@
" Temporary configuration for editing Nix files
syntax on
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
" Shortcutting split navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l