migrate to oil.nvim
This commit is contained in:
parent
eae19b0c19
commit
33110b0465
4 changed files with 17 additions and 27 deletions
|
@ -1,10 +1,6 @@
|
|||
{ ... }: {
|
||||
plugins.auto-session = {
|
||||
enable = true;
|
||||
settings = {
|
||||
pre_save_cmds = ["Neotree close"];
|
||||
post_restore_cmds = ["Neotree show"];
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{...}: {
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
eventHandlers = {
|
||||
neo_tree_window_after_open = ''
|
||||
function(_)
|
||||
vim.cmd("wincmd =")
|
||||
end
|
||||
'';
|
||||
};
|
||||
closeIfLastWindow = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>e";
|
||||
action = "<cmd>Neotree<cr>";
|
||||
options.desc = "focus_neotree";
|
||||
}
|
||||
];
|
||||
}
|
16
config/plugins/utils/oil.nix
Normal file
16
config/plugins/utils/oil.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }: {
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "-";
|
||||
action = "<cmd>Oil<cr>";
|
||||
options = {
|
||||
desc = "Open parent directory";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue