nix-config/users/tacocat/programs/vim.nix

46 lines
951 B
Nix
Raw Normal View History

2024-02-02 16:08:59 +00:00
{pkgs, ...}: {
2024-02-01 20:45:19 +00:00
programs.vim = {
enable = true;
settings = {
copyindent = true;
expandtab = false;
hidden = true;
history = 100;
ignorecase = false;
modeline = true;
mousefocus = false;
number = true;
relativenumber = true;
shiftwidth = 2;
tabstop = 2;
};
2024-02-02 16:08:59 +00:00
plugins = with pkgs.vimPlugins; [
onedark-vim
everforest
2024-02-03 04:33:39 +00:00
gruvbox
vim-colors-solarized
2024-02-02 16:08:59 +00:00
terminus
vim-fugitive
vim-gitgutter
];
extraConfig = ''
set scrolloff=5
set hlsearch
2024-02-03 04:33:39 +00:00
set background=dark
2024-02-03 04:20:12 +00:00
set signcolumn=yes
2024-02-03 04:33:39 +00:00
colorscheme gruvbox
2024-02-03 04:20:12 +00:00
set updatetime=100
2024-02-04 22:56:33 +00:00
set cursorline
set autoindent
set belloff=all
nnoremap <C-@> :call system("wl-copy", @")<CR>
nnoremap <C-q> :nohlsearch<CR>
2024-02-02 16:08:59 +00:00
'';
2024-02-01 20:45:19 +00:00
};
2024-02-03 04:20:12 +00:00
home.file.".vim/after/plugin/terminus.vim".text = ''
let &t_SI="\e[6 q"
let &t_EI="\e[2 q"
'';
2024-02-01 20:45:19 +00:00
}