From 68b5317f89392152abe9d399cbeb2929029b220f Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Fri, 24 Feb 2023 20:05:27 +0100 Subject: [PATCH] [neovim] Remove autosave sessions on exit --- .config/nvim/lua/core/autocommands.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.config/nvim/lua/core/autocommands.lua b/.config/nvim/lua/core/autocommands.lua index 1567e92..df7819d 100644 --- a/.config/nvim/lua/core/autocommands.lua +++ b/.config/nvim/lua/core/autocommands.lua @@ -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" }, {