This commit is contained in:
RingOfStorms (Joshua Bell) 2024-02-20 20:37:34 -06:00
parent d13a904c3f
commit 4413cd4960
4 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
vim.o.sessionoptions = "blank,curdir,folds,tabpages,winsize,winpos" -- `buffers` excluded will only save buffers in windows (add in for hidden/etc)
return {
"rmagatti/auto-session",

View file

@ -3,7 +3,7 @@ return {
config = true,
event = "VeryLazy",
opts = {
retirementAgeMins = 3,
retirementAgeMins = 1,
-- notificationOnAutoClose = true,
-- deleteBufferWhenFileDeleted = true,
},

View file

@ -1,30 +0,0 @@
return {
"stevearc/profile.nvim",
config = function()
local should_profile = os.getenv("NVIM_PROFILE")
if should_profile then
require("profile").instrument_autocmds()
if should_profile:lower():match("^start") then
require("profile").start("*")
else
require("profile").instrument("*")
end
end
local function toggle_profile()
local prof = require("profile")
if prof.is_recording() then
prof.stop()
vim.ui.input({ prompt = "Save profile to:", completion = "file", default = "profile.json" }, function(filename)
if filename then
prof.export(filename)
vim.notify(string.format("Wrote %s", filename))
end
end)
else
prof.start("*")
end
end
vim.keymap.set("", "<f1>", toggle_profile)
end,
}