From 5810a2e8832f245c88b632173da142aba6aed7a6 Mon Sep 17 00:00:00 2001 From: "Gustavo L de Mello (Guz)" Date: Fri, 6 Dec 2024 20:47:55 -0300 Subject: [PATCH] feat(ide): auto-save --- lua/dot013/plugins/ide.lua | 16 ++++++++++++++++ neovim.nix | 1 + 2 files changed, 17 insertions(+) diff --git a/lua/dot013/plugins/ide.lua b/lua/dot013/plugins/ide.lua index 1e541d3..8836327 100644 --- a/lua/dot013/plugins/ide.lua +++ b/lua/dot013/plugins/ide.lua @@ -1,4 +1,20 @@ return { + { + "auto-save-nvim", + cmd = "ASToggle", + event = { "InsertLeave", "TextChanged" }, + after = function() + require("auto-save").setup({ + condition = function(buf) + if vim.bo[buf].filetype == "harpoon" then + return false + end + return true + end, + }) + end, + }, + { "blink-cmp", event = "InsertEnter", diff --git a/neovim.nix b/neovim.nix index b1c1ec6..c069852 100644 --- a/neovim.nix +++ b/neovim.nix @@ -25,6 +25,7 @@ optPlugins = with pkgs; with pkgs.vimPlugins; [ + auto-save-nvim blink-cmp friendly-snippets harpoon2