This repository has been archived on 2025-07-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
home-manager/vim.nix
2024-10-25 16:21:08 -05:00

47 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
'';
};
}