[user/malte] Improve fzf-kak usage

This commit is contained in:
Malte Tammena 2022-05-05 09:40:20 +02:00
parent dd3d272863
commit 03f6e8ae06
3 changed files with 32 additions and 0 deletions

View file

@ -140,6 +140,7 @@
(import ./overlays/qmk-udev-rules.nix)
(import ./overlays/sane-backends.nix)
(import ./overlays/logisim.nix)
(import ./overlays/fzf-kak.nix)
];
hostDefaults.system = "x86_64-linux";

14
overlays/fzf-kak.nix Normal file
View file

@ -0,0 +1,14 @@
self: super: {
kakounePlugins = super.lib.recursiveUpdate super.kakounePlugins {
fzf-kak = super.kakounePlugins.fzf-kak.overrideAttrs (old: {
version = "95b12b1fe93c6db0441c61062823231a28eed037";
src = super.fetchFromGitHub {
owner = "andreyorst";
repo = "fzf.kak";
rev = "95b12b1fe93c6db0441c61062823231a28eed037";
sha256 = "bxpS5Xndn0patWDI2ENC/mgZyoAdMelhRryXzclFZ3E=";
};
});
};
}

View file

@ -24,6 +24,23 @@
{
# Change fzf settings before first use
name = "ModuleLoaded";
option = "fzf";
commands = ''
set-option global fzf_use_main_selection false
'';
}
{
# Change fzf-grep settings before first use
name = "ModuleLoaded";
option = "fzf-grep";
commands = ''
set-option global fzf_grep_command 'rg'
set-option global fzf_grep_preview_command 'bat'
'';
}
{
# Change fzf-file settings before first use
name = "ModuleLoaded";
option = "fzf-file";
commands = ''
set-option global fzf_file_command "fd"