From 1fcff744b70c0d655bc501c0f82caa75c0a66b30 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Mon, 14 Nov 2022 16:35:21 +0000 Subject: Simple vim config --- nix-conf/home/includes/common.nix | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix index ee5a73a..7d67b6f 100644 --- a/nix-conf/home/includes/common.nix +++ b/nix-conf/home/includes/common.nix @@ -56,7 +56,6 @@ in sd tealdeer ugrep - vim w3m ]; @@ -66,5 +65,39 @@ in enableZshIntegration = false; enableBashIntegration = false; }; + + programs.vim = { + enable = true; + extraConfig = '' + " molokayo doesn't load properly without this" + colorscheme molokai + colorscheme molokayo + " highlight doesn't work properly without this" + syntax enable + highlight Normal ctermfg=white ctermbg=black + set hlsearch + set showmatch + ''; + plugins = [ pkgs.vimPlugins.sensible + pkgs.vimPlugins.auto-pairs + pkgs.vimPlugins.awesome-vim-colorschemes + pkgs.vimPlugins.ctrlp + pkgs.vimPlugins.inkpot + pkgs.vimPlugins.surround + pkgs.vimPlugins.vim-lastplace + pkgs.vimPlugins.vim-pasta + pkgs.vimPlugins.vim-sleuth + ]; + settings = { + background = "dark"; + copyindent = true; + expandtab = true; + ignorecase = true; + number = true; + shiftwidth = 4; + smartcase = true; + tabstop = 4; + }; + }; } -- cgit 1.4.1-2-gfad0