Simple vim config

This commit is contained in:
David Morgan 2022-11-14 16:35:21 +00:00
parent fb46fc7654
commit 1fcff744b7
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 34 additions and 1 deletions

View File

@ -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;
};
};
}