URI:
       autosave.lua - 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
       ---
       autosave.lua (461B)
       ---
            1 return {
            2         "okuuva/auto-save.nvim",
            3         version = "*",
            4         cmd = "ASToggle",
            5         ft = "markdown",
            6         opts = {
            7                 condition = function(buf)
            8                         -- don't save for special-buffers
            9                         if vim.fn.getbufvar(buf, "&buftype") ~= "" then
           10                                 return false
           11                         end
           12 
           13                         if vim.bo.filetype == "markdown" then
           14                                 return true
           15                         end
           16 
           17                         if vim.bo.filetype == "vimwiki" then
           18                                 return true
           19                         end
           20 
           21                         if vim.bo.filetype == "todotxt" then
           22                                 return true
           23                         end
           24 
           25                         return false
           26                 end,
           27         },
           28 }