Compare commits

..

2 commits

Author SHA1 Message Date
03669e3a16 vim 2024-09-14 20:36:43 +02:00
65addb8743 auto optimise store 2024-09-14 20:08:05 +02:00
2 changed files with 7 additions and 42 deletions

View file

@ -12,56 +12,18 @@ 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
'';
};
};
programs.nano.enable = false;
};
}
}

View file

@ -43,7 +43,10 @@ in {
};
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
nixpkgs.overlays = import ../pkgs args;
nixpkgs.config.allowUnfree = true;