From 8b1c919f5e624ee126fdbdaa0bb08583beb0a94e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 7 May 2020 18:37:19 +0200 Subject: Add neovim fallback editor --- user/settings/base.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/user/settings/base.nix b/user/settings/base.nix index 7c187f7a..0d5ba9fd 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -6,6 +6,26 @@ 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 @@ ] ++ ( if !stdenv.isDarwin then [ - vim unar ] else [ ]); -- cgit 1.4.1