From ce6094dd606dd111766e76a842265c540e9014de Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 10 Jan 2023 11:23:27 -0800 Subject: [PATCH] Add split navigation shortcuts to neovim --- hosts/home.nix | 2 +- neovim.nix => neovim/default.nix | 9 +-------- neovim/vimrc | 12 ++++++++++++ 3 files changed, 14 insertions(+), 9 deletions(-) rename neovim.nix => neovim/default.nix (51%) create mode 100644 neovim/vimrc diff --git a/hosts/home.nix b/hosts/home.nix index 8c75aee..05d40a9 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -5,7 +5,7 @@ let in { imports = [ - ../neovim.nix + ../neovim ../ranger.nix ../fcitx5 ../picom.nix diff --git a/neovim.nix b/neovim/default.nix similarity index 51% rename from neovim.nix rename to neovim/default.nix index c6c48e5..3829ece 100644 --- a/neovim.nix +++ b/neovim/default.nix @@ -7,13 +7,6 @@ vimAlias = true; defaultEditor = true; plugins = with pkgs.vimPlugins; [ vim-nix ]; - extraConfig = '' - " Temporary configuration for editing Nix files - syntax on - set autoindent - set expandtab - set tabstop=2 - set shiftwidth=2 - ''; + extraConfig = builtins.readFile ./vimrc; }; } diff --git a/neovim/vimrc b/neovim/vimrc new file mode 100644 index 0000000..cf4adb3 --- /dev/null +++ b/neovim/vimrc @@ -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 h +map j +map k +map l