Add neovim fallback editor
Alan Pearce alan@alanpearce.eu
Thu, 07 May 2020 18:37:19 +0200
1 files changed, 20 insertions(+), 1 deletions(-)
jump to
M user/settings/base.nix → user/settings/base.nix
@@ -6,6 +6,26 @@ programs.home-manager.enable = true; manual = { html.enable = true; }; + programs.neovim = { + enable = true; + vimAlias = true; + configure = { + customRC = '' + set autoindent + + set background=light + set shiftwidth=2 + set tabstop=2 + set noexpandtab + set relativenumber + set smartcase + ''; + packages.myVimPackage = with pkgs.vimPlugins; { + start = [ vim-nix ]; + opt = [ ]; + }; + }; + }; home.sessionVariables.EMAIL = "alan@alanpearce.eu"; home.packages = with pkgs; [ pv @@ -26,7 +46,6 @@ telnet ] ++ ( if !stdenv.isDarwin then [ - vim unar ] else [ ]);