add session saving
This commit is contained in:
parent
4daaecf479
commit
a48044c38d
1 changed files with 16 additions and 0 deletions
|
@ -39,6 +39,22 @@ if not vim.loop.fs_stat(mini_path) then
|
|||
end
|
||||
require("mini.deps").setup({ path = { package = path_package } })
|
||||
|
||||
require("mini.sessions").setup({
|
||||
autoread = true,
|
||||
autowrite = true
|
||||
})
|
||||
|
||||
-- <C-_> is Ctrl+/
|
||||
local comment_keybind = "<C-_>"
|
||||
require("mini.comment").setup({
|
||||
mappings = {
|
||||
comment = comment_keybind,
|
||||
comment_line = comment_keybind,
|
||||
comment_visual = comment_keybind,
|
||||
textobject = comment_keybind,
|
||||
},
|
||||
})
|
||||
|
||||
-- Install plugins
|
||||
for plugin in pairs(plugins) do
|
||||
MiniDeps.add(plugins[plugin])
|
||||
|
|
Loading…
Add table
Reference in a new issue