nix/common/dotfiles/vim.nix
2023-07-01 21:02:03 +09:00

37 lines
No EOL
682 B
Nix

{ config, pkgs, ... }: {
# https://nixos.wiki/wiki/Vim
programs.vim = {
enable = true;
plugins = with pkgs.vimPlugins; [
vim-airline
YouCompleteMe
tabnine-vim
nerdtree
rainbow
# Themes
vim-airline-themes
nord-vim
gruvbox
];
settings = { ignorecase = true; };
extraConfig = ''
set mouse=a
set number
syntax on
set hlsearch
set ignorecase
set smartcase
set autoindent
set ruler
set shiftwidth=2
set expandtab
set softtabstop=2
set cursorline
# Theming
colorscheme gruvbox
AirlineTheme gruvbox
'';
};
}