Skip to content

Guard.nvim should support lint on FileType * #132

@UnderCooled

Description

@UnderCooled
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('*').

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions