From 9c77a5ff83a7b9ffb87b1087d1f27cc534ceaeb4 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 31 May 2018 14:17:07 -0700 Subject: Polybar and stuff --- vim.nix | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'vim.nix') diff --git a/vim.nix b/vim.nix index 80954c7..311300b 100644 --- a/vim.nix +++ b/vim.nix @@ -1,3 +1,17 @@ +{ pkgs, vimUtils, fetchFromGitHub }: + +let + vim-sexp = vimUtils.buildVimPluginFrom2Nix { + name = "elm.vim-2017-07-09"; + src = fetchFromGitHub { + owner = "guns"; + repo = "vim-sexp"; + rev = "12292941903d9ac8151513189d2007e1ccfc95f0"; + sha256 = "1mfqbmrbqgnsc34pmcsrc0c5zvgxhhnw4hx4g5wbssfk1ddyx6y0"; + }; + dependencies = []; + }; +in { enable = true; plugins = [ @@ -12,16 +26,6 @@ tabstop = 4; }; extraConfig = '' - " Auto-switch theme - let hour = strftime("%H") - if 6 <= hour && hour < 18 - set background=light - else - set background=dark - endif - let g:solarized_termcolors=256 - colorscheme solarized - " set cuc cul " Crosshair set cc=80 " 80 column lines set linebreak " Break lines at word (requires Wrap lines) @@ -34,5 +38,15 @@ set smartindent " Enable smart-indent imap fd set mouse=a + "" + "" Auto-switch theme + let hour = strftime("%H") + if 6 <= hour && hour < 18 + set background=light + else + set background=dark + endif + let g:solarized_termcolors=256 + colorscheme solarized ''; } -- cgit v1.2.3