fixed mini sessions and added telescope
This commit is contained in:
@@ -16,37 +16,6 @@ require("auto-save").setup({
|
||||
noautocmd = true,
|
||||
})
|
||||
|
||||
local group = vim.api.nvim_create_augroup("autosave", {})
|
||||
|
||||
-- Notification to say when a file is saved
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "AutoSaveWritePre",
|
||||
group = group,
|
||||
callback = function(opts)
|
||||
if opts.data.saved_buffer ~= nil then
|
||||
local filename = vim.fn.expand("%:t")
|
||||
print("Saved '" .. filename .. "' at " .. vim.fn.strftime("%H:%M:%S"))
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Notification when enabling/disabling autosave for a buffer
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "AutoSaveEnable",
|
||||
group = group,
|
||||
callback = function(opts)
|
||||
print("AutoSave enabled")
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "AutoSaveDisable",
|
||||
group = group,
|
||||
callback = function(opts)
|
||||
print("AutoSave disabled")
|
||||
end,
|
||||
})
|
||||
|
||||
-- enable remember
|
||||
require("remember").setup({})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user