okuuva / auto-save.nvim

🧶 Automatically save your changes in NeoVim
GNU General Public License v3.0
154 stars 8 forks source link

config is ignored #30

Closed alexmnr closed 1 year ago

alexmnr commented 1 year ago

When I add this:

  {
    "okuuva/auto-save.nvim",
    cmd = "ASToggle",
    opts = {
      enabled = false
    },
  },

to my lazy config, auto-save works just fine, but it always starts enabled.

I also tried running this setup:

require('auto-save').setup {
    enabled = false
}

in a seperate file, but got the same results.

What am I doing wrong?

primeapple commented 1 year ago

Thanks for filing this issue. You are completely right, we don't take that parameter into account at the right place. This is yet another left over from the original plugin.

Will see what I can, in the mean time, a require("auto-save").off() after the setup should do the trick.

Zedai00 commented 1 year ago

I've tried the latest plugin and this still doesn't work image it still starts enabled and config does not work

okuuva commented 1 year ago

I've tried the latest plugin and this still doesn't work image it still starts enabled and config does not work

Weird, "works on my machine". What does your lazy-lock.json say? Mine is at "auto-save.nvim": { "branch": "main", "commit": "895bde43d24a52536ae9c258df61b74a69b18b67" }, and like said, works fine here.

Could you elaborate on "config does not work"? What exactly doesn't work?

Zedai00 commented 1 year ago

Sorry It worked just needed to update