diff options
Diffstat (limited to 'modules/vim.nix')
-rwxr-xr-x | modules/vim.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/vim.nix b/modules/vim.nix new file mode 100755 index 0000000..3524e2c --- /dev/null +++ b/modules/vim.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: +{ + environment.variables = { EDITOR = "vim"; }; + + environment.systemPackages = with pkgs; [ + (neovim.override { + vimAlias = true; + configure = { + packages.myPlugins = with pkgs.vimPlugins; { + start = [ vim-lastplace vim-nix vim-airline ]; + opt = []; + }; + customRC = '' + " your custom vimrc + set nocompatible + set backspace=indent,eol,start + " ... + ''; + }; + } + )]; +} |