Files
nixos-config/profiles/base/home-manager/neovim/plugins/oil.nix
2025-08-05 14:40:28 +02:00

41 lines
823 B
Nix

{
programs.nixvim.plugins.oil = {
enable = true;
autoLoad = true;
settings = {
columns = [
"icon"
];
keymaps = {
"<C-r>" = "actions.refresh";
"<leader>qq" = "actions.close";
};
skip_confirm_for_simple_edits = true;
constrain_cursor = "editable";
default_file_explorer = true;
view_options = {
show_hidden = true;
};
win_options = {
concealcursor = "ncv";
conceallevel = 3;
cursorcolumn = false;
foldcolumn = "0";
list = false;
signcolumn = "no";
spell = false;
wrap = false;
};
};
};
programs.nixvim.keymaps = [
{
mode = "n";
key = "<leader>e";
action = ":Oil<CR>";
options.desc = "File browser";
}
];
}