home-manager/vim.nix

48 lines
985 B
Nix

{ pkgs, ... }: {
programs.vim = {
enable = true;
plugins = with pkgs.vimPlugins; [
rainbow
nerdtree nerdtree-git-plugin
vim-signify vim-openscad vim-javascript vim-jsx-pretty
];
extraConfig = ''
" Assorted BS
set nocompatible
source $VIMRUNTIME/defaults.vim
" Various line stuff
set number
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set smartindent
" Highlight ES6 template strings
hi link javaScriptTemplateDelim String
hi link javaScriptTemplateVar Text
hi link javaScriptTemplateString String
" Enable JSDocs
let g:javascript_plugin_jsdoc = 1
" Folding stuff
set foldmethod=indent
set nofoldenable
" GitGutter stuff
set updatetime=100
" Stop hiding punctuation
set conceallevel=0
set background=dark
set t_Co=256
" Stop mousing
set mouse-=a
'';
};
}