nix/common/dotfiles/vim.nix

36 lines
644 B
Nix
Raw Normal View History

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