1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 17:28:01 +00:00

[neovim] Remove autosave sessions on exit

This commit is contained in:
Daniel Carrillo 2023-02-24 20:05:27 +01:00
parent fee817f060
commit 68b5317f89
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

View File

@ -34,13 +34,13 @@ vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
end, end,
}) })
-- Autostore session on VimExit -- -- Autostore session on VimExit
local Session = require("projections.session") -- local Session = require("projections.session")
vim.api.nvim_create_autocmd({ "VimLeavePre" }, { -- vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
callback = function() -- callback = function()
Session.store(vim.loop.cwd()) -- Session.store(vim.loop.cwd())
end, -- end,
}) -- })
-- Ensure terraform files use hcl LSP -- Ensure terraform files use hcl LSP
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {