mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-02 12:09:26 +00:00
[neovim] Move from session_manager to projections
This commit is contained in:
@ -17,6 +17,6 @@ require("plugins.wilder")
|
||||
require("plugins.trouble")
|
||||
require("plugins.autosave")
|
||||
require("plugins.markdowntoc")
|
||||
require("plugins.session-manager")
|
||||
require("plugins.projections")
|
||||
require("plugins.diffview")
|
||||
require("plugins.sad")
|
||||
|
15
.config/nvim/lua/plugins/projections.lua
Normal file
15
.config/nvim/lua/plugins/projections.lua
Normal file
@ -0,0 +1,15 @@
|
||||
local status_ok, projections = pcall(require, "projections")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
projections.setup({
|
||||
store_hooks = {
|
||||
pre = function()
|
||||
-- Close neo-tree before storing sessions
|
||||
if pcall(require, "neo-tree") then
|
||||
vim.cmd([[Neotree action=close]])
|
||||
end
|
||||
end,
|
||||
},
|
||||
})
|
@ -1,8 +0,0 @@
|
||||
local status_ok, session_manager = pcall(require, "session_manager")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
session_manager.setup({
|
||||
autosave_only_in_session = false,
|
||||
})
|
@ -43,3 +43,4 @@ telescope.setup({
|
||||
|
||||
telescope.load_extension("fzf")
|
||||
telescope.load_extension("ui-select")
|
||||
telescope.load_extension("projections")
|
||||
|
Reference in New Issue
Block a user