session management
This commit is contained in:
parent
b5b7fdebc6
commit
eae19b0c19
4 changed files with 33 additions and 0 deletions
21
config/plugins/editor/sessions.nix
Normal file
21
config/plugins/editor/sessions.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ ... }: {
|
||||
plugins.auto-session = {
|
||||
enable = true;
|
||||
settings = {
|
||||
pre_save_cmds = ["Neotree close"];
|
||||
post_restore_cmds = ["Neotree show"];
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = ["n"];
|
||||
key = "<leader>ss";
|
||||
action = ":SessionSearch<cr>";
|
||||
options = {
|
||||
desc = "Search sessions";
|
||||
silent = true;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
|
@ -1,6 +1,13 @@
|
|||
{...}: {
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
eventHandlers = {
|
||||
neo_tree_window_after_open = ''
|
||||
function(_)
|
||||
vim.cmd("wincmd =")
|
||||
end
|
||||
'';
|
||||
};
|
||||
closeIfLastWindow = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue