diff options
author | Ben Sima <ben@bsima.me> | 2020-12-14 13:07:46 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-12-14 13:07:46 -0500 |
commit | aee9a724631bb67c38da44931275a3d28a4c007e (patch) | |
tree | 238560d04155e81447c545e461a1fd8068cc6f15 /lib/common.nix | |
parent | 5ca22a2e982011d1d33ac40f81b5ee6f78836dad (diff) |
vim colors and fzf integration
Diffstat (limited to 'lib/common.nix')
-rw-r--r-- | lib/common.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common.nix b/lib/common.nix index 0975cfd..64d0829 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -22,6 +22,7 @@ in FD_OPTIONS = "--follow --exclude .git"; BAT_PAGER = "less -R"; + FZF_DEFAULT_OPTS = "--bind='?:toggle-preview'"; FZF_DEFAULT_COMMAND = "git ls-files --cached --others --exclude-standard | fd --type f --type l $FD_OPTIONS"; FZF_CTRL_T_COMMAND = "fd $FD_OPTIONS"; FZF_ALT_C_COMMAND = "fd --type d $FD_OPTIONS"; @@ -291,7 +292,7 @@ in tdate = "date +%Y.%m.%d..%H.%M"; ttime = "date +%H.%M"; typeless = "history | tail -n 20000 | sed 's/.* //' | sort | uniq -c | sort -g | tail -n 100"; - v = "vim $(fzf)"; + v = "vim $(fzf --preview='bat --color=always {}' --preview-window right:70%)"; "v." = "vim ."; }; }; |