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