Compare commits

..

No commits in common. "03669e3a1629ad413c91d347879caba648ea0f46" and "68ab2f14db17c7a922815d282c288d15ab047ca8" have entirely different histories.

2 changed files with 42 additions and 7 deletions

View file

@ -12,14 +12,52 @@ 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;
settings = {
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";
number = true;
relativenumber = true;
shiftwidth = 4;
smartcase = false;
tabstop = 4;
undodir = [ "${vimCache}/undo/" ];
undofile = false;
};
extraConfig = ''
set laststatus=0
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
'';
};
};

View file

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