Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard.nvim should support lint on FileType * #132

Closed
UnderCooled opened this issue Jan 12, 2024 · 0 comments · Fixed by #134
Closed

Guard.nvim should support lint on FileType * #132

UnderCooled opened this issue Jan 12, 2024 · 0 comments · Fixed by #134
Labels
bug Something isn't working

Comments

@UnderCooled
Copy link

ft('*'):lint(...)

In the screenshot, autocmd is generated fine:
image

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

if not ft_handler[vim.bo[buf].filetype] then
return
end
local linters = ft_handler[vim.bo[buf].filetype].linter

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

@xiaoshihou514 xiaoshihou514 reopened this Jan 12, 2024
@xiaoshihou514 xiaoshihou514 added the bug Something isn't working label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants