diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
| commit | e8077fde966e051fc449fffcfa061c7f7edc47b0 (patch) | |
| tree | a0b1ce60f2718f90c64e924ed8df8d5d4f0d2289 /modules/home/tools/vim | |
| parent | e486d896215e7ef04438809952bc7317512d5765 (diff) | |
migration: finalize
Diffstat (limited to 'modules/home/tools/vim')
| -rw-r--r-- | modules/home/tools/vim/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/home/tools/vim/default.nix b/modules/home/tools/vim/default.nix new file mode 100644 index 0000000..b07f8d4 --- /dev/null +++ b/modules/home/tools/vim/default.nix @@ -0,0 +1,43 @@ +{ options, config, lib, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.tools.vim; + theme = config.${namespace}.desktop.theme; +in { + options.${namespace}.tools.vim = with types; { + enable = mkEnableOption "vim"; + }; + + config = mkIf cfg.enable { + home.file.".vim/vimrc".text = '' + set number + set relativenumber + set showcmd + + set termguicolors + set background=dark + colorscheme ${theme.name} + + syntax on + + highlight Normal guibg=#000000 + + " Awesome magical color override from + " https://gist.github.com/romainl/379904f91fa40533175dfaec4c833f2f + augroup MyColors + autocmd! + autocmd ColorScheme * highlight Normal guibg=#000000 + augroup END + ''; + + home.file.".vim/pack/default/start/gruvbox".source = builtins.fetchGit { + url = "https://github.com/morhetz/gruvbox.git"; + rev = "f1ecde848f0cdba877acb0c740320568252cc482"; + }; + + home.file.".vim/pack/all/start/vim-nix".source = builtins.fetchGit { + url = "https://github.com/LnL7/vim-nix.git"; + rev = "e25cd0f2e5922f1f4d3cd969f92e35a9a327ffb0"; + }; + }; +} |