mcauley-penney / tidy.nvim

A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
107 stars 15 forks source link

Error when writing `:w` file when tidy.nvim is enabled #14

Closed sirutBuasai closed 1 year ago

sirutBuasai commented 1 year ago

Received an error when writing file.

Error detected while processing BufWritePre Autocommands for "*":
Error executing lua callback: ...config/nvim/autoload/plugged/tidy.nvim/lua/tidy/init.lua:17: attempt to call field 'list_contains' (a nil value)
stack traceback:
        ...config/nvim/autoload/plugged/tidy.nvim/lua/tidy/init.lua:17: in function 'is_excluded_ft'
mcauley-penney commented 1 year ago

Thanks for the issue! I made my commit this morning using the Lua documentation but didn't realize that vim.list_contains() is only on nightly. That's my bad. I'll revert it and move it to branch for nvim 0.10

mcauley-penney commented 1 year ago

Should be closed by 86eab24e807ed2957d26ca43b2b76b92d0fbf8f4. Let me know if you have any issues