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