summary refs log tree commit diff
path: root/packages/vim.nix
diff options
context:
space:
mode:
Diffstat (limited to 'packages/vim.nix')
-rwxr-xr-xpackages/vim.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/vim.nix b/packages/vim.nix
new file mode 100755

index 0000000..1b7bb37 --- /dev/null +++ b/packages/vim.nix
@@ -0,0 +1,29 @@ +{ 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 + colorscheme vim + " ... + ''; + }; + }) + ]; +}