URI:
       add autosave.nvim - dotfiles - 🍚 personal arsenal of "rice"
  HTML git clone https://git.drkhsh.at/dotfiles.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 607e893cf9e8588178b44acc13d7e7fdaf8bcf69
   DIR parent e83b7b1b88d9a670f965e7d56f855b0f512ab477
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Thu,  6 Feb 2025 02:31:51 +0100
       
       add autosave.nvim
       
       Diffstat:
         A vim/.config/nvim/lua/plugins/autos… |      20 ++++++++++++++++++++
       
       1 file changed, 20 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/vim/.config/nvim/lua/plugins/autosave.lua b/vim/.config/nvim/lua/plugins/autosave.lua
       @@ -0,0 +1,20 @@
       +return {
       +        "okuuva/auto-save.nvim",
       +        version = "*",
       +        cmd = "ASToggle",
       +        ft = "markdown",
       +        opts = {
       +                condition = function(buf)
       +                        -- don't save for special-buffers
       +                        if vim.fn.getbufvar(buf, "&buftype") ~= "" then
       +                                return false
       +                        end
       +
       +                        if vim.bo.filetype == "markdown" then
       +                                return true
       +                        end
       +
       +                        return false
       +                end,
       +        },
       +}