vim
This commit is contained in:
parent
65addb8743
commit
03669e3a16
1 changed files with 3 additions and 41 deletions
|
@ -12,52 +12,14 @@ in {
|
|||
|
||||
home-manager.users.${user} = {
|
||||
home.sessionVariables = { "EDITOR" = "vim"; };
|
||||
# fixme: not .vim
|
||||
home.file = { ".vim/colors/darcula.vim".source = ../../files/darcula.vim; };
|
||||
programs.vim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
plugins = [
|
||||
pkgs.vimPlugins.indentLine
|
||||
pkgs.vimPlugins.vim-gitgutter
|
||||
];
|
||||
settings = let
|
||||
vimCache = "${config.home-manager.users.${user}.xdg.cacheHome}/vim";
|
||||
in {
|
||||
background = "dark";
|
||||
backupdir = [ "${vimCache}/backup/" ];
|
||||
copyindent = false;
|
||||
directory = [ "${vimCache}/swap/" ];
|
||||
expandtab = true;
|
||||
hidden = false;
|
||||
history = 420;
|
||||
ignorecase = false;
|
||||
modeline = true;
|
||||
mouse = "a";
|
||||
mousefocus = false;
|
||||
mousehide = false;
|
||||
mousemodel = "popup_setpos";
|
||||
settings = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
shiftwidth = 4;
|
||||
smartcase = false;
|
||||
tabstop = 4;
|
||||
undodir = [ "${vimCache}/undo/" ];
|
||||
undofile = false;
|
||||
};
|
||||
extraConfig = ''
|
||||
set updatetime=100
|
||||
set signcolumn=yes
|
||||
set termguicolors
|
||||
set cursorline
|
||||
colorscheme darcula
|
||||
let g:indentLine_char = '▏'
|
||||
let g:c_no_ansi = 1
|
||||
let g:c_functions = 1
|
||||
let g:c_no_c99 = 1
|
||||
let g:c_no_bsd = 1
|
||||
let g:c_no_c11 = 1
|
||||
let g:c_gnu = 1
|
||||
set laststatus=0
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue