nvim
This commit is contained in:
40
profiles/base/home-manager/neovim/plugins/oil.nix
Normal file
40
profiles/base/home-manager/neovim/plugins/oil.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
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";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user