2024-08-24 23:04:20 -07:00
|
|
|
# Getting around REALLY FAST
|
2024-09-16 23:48:33 -07:00
|
|
|
{ pkgs, ... }:
|
2024-08-24 23:04:20 -07:00
|
|
|
{
|
2024-08-24 23:36:19 -07:00
|
|
|
plugins = {
|
2024-08-24 23:04:20 -07:00
|
|
|
telescope = {
|
|
|
|
enable = true;
|
|
|
|
extensions = {
|
|
|
|
ui-select = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
codeactions = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
media-files = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
filetypes = [
|
|
|
|
"png"
|
|
|
|
"webp"
|
|
|
|
"jpg"
|
|
|
|
"jpeg"
|
|
|
|
"mp4"
|
|
|
|
"svg"
|
|
|
|
"pdf"
|
|
|
|
"mov"
|
|
|
|
"mkv"
|
|
|
|
"avi"
|
|
|
|
];
|
|
|
|
find_cmd = "rg";
|
|
|
|
};
|
|
|
|
dependencies = {
|
|
|
|
imageMagick.enable = true;
|
|
|
|
pdftoppm.enable = true;
|
|
|
|
ffmpegthumbnailer.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-09-16 23:48:33 -07:00
|
|
|
oil = {
|
|
|
|
enable = true;
|
|
|
|
# because combinePlugins.enable = true, the collision of `doc` is
|
|
|
|
# unavoidable. this renames them.
|
|
|
|
package = pkgs.vimPlugins.oil-nvim.overrideAttrs (oldAttrs: {
|
|
|
|
postInstall =
|
|
|
|
(oldAttrs.postInstall or "")
|
|
|
|
+ ''
|
|
|
|
mv $out/doc/recipes.md $out/doc/oil_recipes.md
|
|
|
|
'';
|
|
|
|
});
|
2024-09-17 00:57:12 -07:00
|
|
|
settings = {
|
|
|
|
keymaps = {
|
2024-09-17 02:07:12 -07:00
|
|
|
"J" = "actions.parent";
|
2024-09-17 00:57:12 -07:00
|
|
|
"Q" = "actions.close";
|
2024-09-17 02:07:12 -07:00
|
|
|
"<C-h>" = "actions.select_split";
|
|
|
|
"<C-l>" = "actions.refresh";
|
|
|
|
"<C-p>" = "actions.preview";
|
|
|
|
"<C-s>" = "actions.select_vsplit";
|
|
|
|
"<C-t>" = "actions.select_tab";
|
|
|
|
"<CR>" = "actions.select";
|
|
|
|
"K" = "actions.select";
|
|
|
|
_ = "actions.open_cwd";
|
|
|
|
"`" = "actions.cd";
|
|
|
|
"g." = "actions.toggle_hidden";
|
|
|
|
"g?" = "actions.show_help";
|
|
|
|
"g\\" = "actions.toggle_trash";
|
|
|
|
gs = "actions.change_sort";
|
|
|
|
gx = "actions.open_external";
|
|
|
|
"~" = "actions.tcd";
|
2024-09-17 00:57:12 -07:00
|
|
|
};
|
2024-09-17 02:07:12 -07:00
|
|
|
use_default_keymaps = false;
|
2024-09-17 00:57:12 -07:00
|
|
|
};
|
2024-08-24 23:04:20 -07:00
|
|
|
};
|
|
|
|
harpoon = {
|
|
|
|
enable = true;
|
|
|
|
keymaps = {
|
|
|
|
addFile = "<Leader>hh";
|
|
|
|
cmdToggleQuickMenu = "<Leader>hm";
|
|
|
|
gotoTerminal = {
|
|
|
|
"1" = "<Leader>ht";
|
2024-09-17 14:38:45 -07:00
|
|
|
"2" = "<Leader>h2";
|
|
|
|
"3" = "<Leader>h3";
|
|
|
|
"4" = "<Leader>h4";
|
2024-08-24 23:04:20 -07:00
|
|
|
};
|
|
|
|
navFile = {
|
2024-09-18 11:48:38 -07:00
|
|
|
"1" = "<leader>j";
|
|
|
|
"2" = "<leader>k";
|
|
|
|
"3" = "<leader>l";
|
|
|
|
"4" = "<leader>;";
|
2024-09-17 14:38:45 -07:00
|
|
|
"5" = "<Leader>1";
|
|
|
|
"6" = "<Leader>2";
|
|
|
|
"7" = "<Leader>3";
|
|
|
|
"8" = "<Leader>4";
|
2024-08-24 23:04:20 -07:00
|
|
|
};
|
2024-09-17 14:38:45 -07:00
|
|
|
navNext = "<Leader>]";
|
|
|
|
navPrev = "<Leader>[";
|
2024-08-24 23:04:20 -07:00
|
|
|
toggleQuickMenu = "<Leader>hk";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|