nvimdev / guard.nvim

async fast minimalist plugin make format easy in neovim
MIT License
448 stars 24 forks source link

Guard.nvim should support lint on `FileType *` #132

Closed UnderCooled closed 9 months ago

UnderCooled commented 9 months ago
ft('*'):lint(...)

In the screenshot, autocmd is generated fine: image

But it won't be execute on :GuardFmt or on file save.

https://github.com/nvimdev/guard.nvim/blob/464578589f72a589036d682204454e6f0537c846/lua/guard/lint.lua#L13-L16

I think this if check skips the linter defined in ft('*').