diff --git a/nvim/lua/plugs/auto_session.lua b/nvim/lua/plugs/auto_session.lua deleted file mode 100644 index 660f348..0000000 --- a/nvim/lua/plugs/auto_session.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - "rmagatti/auto-session", - opts = { - log_level = "error", - auto_session_suppress_dirs = { - "/", - "~/", - "~/Projects", - "~/Downloads", - "~/Development", - "~/Dev", - "~/Dev/Git", - "~/.config", - }, - }, - init = function() - vim.o.sessionoptions = "localoptions" - end -} diff --git a/nvim/lua/plugs/persistence.lua b/nvim/lua/plugs/persistence.lua new file mode 100644 index 0000000..1ccfd38 --- /dev/null +++ b/nvim/lua/plugs/persistence.lua @@ -0,0 +1,5 @@ +return { + "folke/persistence.nvim", + event = "BufReadPre", -- this will only start session saving when an actual file was opened + opts = {} +} diff --git a/nvim/lua/plugs/snacks.lua b/nvim/lua/plugs/snacks.lua index 418b207..a430aa4 100644 --- a/nvim/lua/plugs/snacks.lua +++ b/nvim/lua/plugs/snacks.lua @@ -8,7 +8,20 @@ return { what = "repo", }, picker = { enabled = true, }, - dashboard = { enabled = true, }, + dashboard = { + enabled = true, + preset = { + keys = { + { icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" }, + { icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" }, + { icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" }, + { icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" }, + { icon = " ", key = "s", desc = "Restore Session", section = "session" }, + { icon = "󰒲 ", key = "L", desc = "Lazy", action = ":Lazy", enabled = package.loaded.lazy ~= nil }, + { icon = " ", key = "q", desc = "Quit", action = ":qa" }, + }, + }, + }, debug = { enabled = true, }, indent = { enabled = true,