diff --git a/home/common/vifm.nix b/home/common/vifm.nix index 2e231f2..084564e 100644 --- a/home/common/vifm.nix +++ b/home/common/vifm.nix @@ -1,57 +1,32 @@ {pkgs, ...}: { - home.packages = with pkgs; [vifm-full]; - xdg.configFile."vifm/vifmrc".text = '' - " vim: filetype=vifm : - set runexec - colorscheme dracula - set timefmt=%Y-%m-%d\ %H:%M - set hlsearch - set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d " - " :mark mark /full/directory/path [filename] - mark b ~/bin/ - mark h ~/ - mark d ~/Downloads - nnoremap gd :cd ~/Downloads - ''; + programs.vifm = { + enable = true; + extraConfig = '' + " vim: filetype=vifm : + set runexec + colorscheme dracula + set timefmt=%Y-%m-%d\ %H:%M + set hlsearch + set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d " + " :mark mark /full/directory/path [filename] + mark b ~/bin/ + mark h ~/ + mark d ~/Downloads + nnoremap gd :cd ~/Downloads + ''; + }; xdg.configFile."vifm/colors/dracula.vifm".text = '' - " VIFM COLORS - " dracula - " based on: https://github.com/istib/dotfiles/blob/master/vifm/vifm-colors - - " Default = -1 = None, can be used for transparency or default color - " Black = 0 - " Red = 1 - " Green = 2 - " Yellow = 3 - " Blue = 4 - " Magenta = 5 - " Cyan = 6 - " White = 7 - - " STYLES - " bold - " underline - " reverse or inverse - " standout - " none - - highlight clear - highlight Win cterm=none ctermfg=default ctermbg=none - highlight TopLine cterm=none ctermfg=blue ctermbg=none highlight TopLineSel cterm=none ctermfg=magenta ctermbg=none highlight StatusLine cterm=none ctermfg=blue ctermbg=none highlight Border cterm=none ctermfg=blue ctermbg=none - highlight Selected cterm=bold ctermfg=magenta ctermbg=default highlight CurrLine cterm=bold ctermfg=236 ctermbg=blue - highlight WildMenu cterm=none,reverse ctermfg=blue ctermbg=236 highlight CmdLine cterm=none ctermfg=255 ctermbg=236 highlight ErrorMsg cterm=none ctermfg=red ctermbg=black - highlight Directory cterm=none ctermfg=blue ctermbg=default highlight Link cterm=none ctermfg=cyan ctermbg=default highlight BrokenLink cterm=none ctermfg=red ctermbg=default