[user/malte] Improve fzf-kak usage
This commit is contained in:
parent
dd3d272863
commit
03f6e8ae06
|
@ -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
14
overlays/fzf-kak.nix
Normal 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=";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue