nix/common/dotfiles/vim.nix

37 lines
654 B
Nix
Raw Normal View History

2023-07-01 19:02:59 +09:00
{ config, pkgs, ... }: {
# https://nixos.wiki/wiki/Vim
programs.vim = {
enable = true;
2023-07-01 20:08:44 +09:00
plugins = with pkgs.vimPlugins; [
vim-airline
2023-07-01 20:42:01 +09:00
YouCompleteMe
2023-07-01 20:14:29 +09:00
tabnine-vim
2023-07-01 20:08:44 +09:00
nerdtree
rainbow
2023-07-01 20:42:01 +09:00
# Themes
vim-airline-themes
2023-07-01 21:02:03 +09:00
nord-vim
2023-07-01 20:42:01 +09:00
gruvbox
2023-07-01 20:08:44 +09:00
];
2023-07-01 21:12:05 +09:00
settings = {
ignorecase = true;
colorscheme = "gruvbox";
};
2023-07-01 19:02:59 +09:00
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
2023-07-01 21:10:38 +09:00
2023-07-01 19:02:59 +09:00
'';
};
}