From 9f36c9e319c3f62d2cc5fcc13888bb1c52549dd5 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 23 Jul 2024 17:04:16 +0300 Subject: refactor(neovim): minor changes and splited most plugins to their own file --- .config/nvim/lua/custom/plugins/auto-save.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .config/nvim/lua/custom/plugins/auto-save.lua (limited to '.config/nvim/lua/custom/plugins/auto-save.lua') diff --git a/.config/nvim/lua/custom/plugins/auto-save.lua b/.config/nvim/lua/custom/plugins/auto-save.lua new file mode 100644 index 0000000..4299d0d --- /dev/null +++ b/.config/nvim/lua/custom/plugins/auto-save.lua @@ -0,0 +1,11 @@ +return { + 'okuuva/auto-save.nvim', + cmd = 'ASToggle', + event = { 'InsertLeave', 'TextChanged' }, + opts = { + execution_message = { enabled = false }, + condition = function(buf) + return vim.fn.getbufvar(buf, '&buftype') == '' + end, + }, +} -- cgit v1.3.1