1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 08:08:00 +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,
})
-- Autostore session on VimExit
local Session = require("projections.session")
vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
callback = function()
Session.store(vim.loop.cwd())
end,
})
-- -- Autostore session on VimExit
-- local Session = require("projections.session")
-- vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
-- callback = function()
-- Session.store(vim.loop.cwd())
-- end,
-- })
-- Ensure terraform files use hcl LSP
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {