Add some utilities: fzf, rg, speedcrunch

This commit is contained in:
Jacob Hinkle 2022-09-26 09:43:22 -04:00
parent ed21a82214
commit a517896a4a

View File

@ -31,6 +31,7 @@
feh feh
file file
#freecad #freecad
fzf
#gnumake #gnumake
hack-font hack-font
jq jq
@ -42,10 +43,12 @@
#openscad #openscad
#pandoc #pandoc
pavucontrol pavucontrol
ripgrep
scli scli
scrot scrot
signal-desktop signal-desktop
sops sops
speedcrunch
spotify-tui spotify-tui
sxiv sxiv
#texlive.combined.scheme-full #texlive.combined.scheme-full
@ -161,11 +164,19 @@
set bs=2 " allow backspacing over everything in insert mode set bs=2 " allow backspacing over everything in insert mode
set ai " always set autoindenting on set ai " always set autoindenting on
set number relativenumber
set colorcolumn=100
''; '';
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
ctrlp #context-vim
gundo #ctrlp
#fzf
#gundo
python-mode python-mode
#telescope-nvim
#telescope-fzf-native-nvim
#nvim-treesitter
vim-nix vim-nix
]; ];
vimAlias = true; vimAlias = true;
@ -209,6 +220,7 @@
}; };
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
FZF_DEFAULT_OPTS = "--layout=reverse --inline-info --height=40% --border";
}; };
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
@ -217,12 +229,27 @@
"git" "git"
"sudo" "sudo"
"vi-mode" "vi-mode"
"fzf"
]; ];
theme = "michelebologna"; # nice clean theme that shows jobs theme = "michelebologna"; # nice clean theme that shows jobs
}; };
# michelebologna theme doesn't have an RPROMPT, but I like the one from the clean theme
initExtra = '' initExtra = ''
# michelebologna theme doesn't have an RPROMPT, but I like the one from
# the clean theme
RPROMPT='[%*]' RPROMPT='[%*]'
# wrap the fzf command with some killable helpers
function vif() {
local fname
fname=$(fzf) || return
vim "$fname"
}
function fcd() {
local dirname
dirname=$(find -type d | fzf) || return
cd "$dirname"
}
''; '';
}; };
}; };