48 lines
2.1 KiB
Nix
48 lines
2.1 KiB
Nix
{ pkgs, ... }: {
|
|
programs.vifm = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
" vim: filetype=vifm :
|
|
set runexec
|
|
colorscheme dracula
|
|
set timefmt=%Y-%m-%d\ %H:%M
|
|
set hlsearch
|
|
set vicmd=nvim
|
|
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
|
|
" :mark mark /full/directory/path [filename]
|
|
mark b ~/bin/
|
|
mark h ~/
|
|
mark d ~/Downloads
|
|
nnoremap w :view<cr>
|
|
nnoremap gd :cd ~/Downloads<cr>
|
|
command! cmpinternal compare-cmd %a %S
|
|
command! cmp : if expand('%%c') == expand('%%f')
|
|
\ | echo expand('Comparing %%"c and %%"C:t ...')
|
|
\ | cmpinternal %c %C
|
|
\ | else
|
|
\ | echo expand('Comparing files: %%"f ...')
|
|
\ | cmpinternal %f
|
|
\ | endif
|
|
'';
|
|
};
|
|
xdg.configFile."vifm/colors/dracula.vifm".text = ''
|
|
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
|
|
highlight Socket cterm=none ctermfg=magenta ctermbg=black
|
|
highlight Device cterm=none ctermfg=red ctermbg=default
|
|
highlight Fifo cterm=none ctermfg=yellow ctermbg=black
|
|
highlight Executable cterm=none ctermfg=green ctermbg=default
|
|
'';
|
|
}
|