-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
[help] golangci-lint not showing any diagnostics #690
Comments
I've managed to remove these errors by renaming my lint file from |
Thanks for the suggestion @dzolt-4chain but this didn't end up working for me :( |
I too am having issues, as the autocmd is not firing (ignore my custom loader code is just fires off vim.notify events for any plugins I cannot load): return {
"mfussenegger/nvim-lint",
config = function()
local utils = require("amn.utils")
local lint = utils.do_import("lint")
if not lint then
return
end
lint.linters_by_ft = {
go = { "golangcilint" },
markdown = { "markdownlint" },
}
vim.api.nvim_create_autocmd("BufWritePost", {
callback = function()
lint.try_lint()
end,
})
end,
} However if I run the following manually in command mode while a buffer is open golangci-lint linter runs fine:
The linter also is in the path and runs fine from the CLI. Additionally, the Markdown linter is triggering using the autocmd which is why I am somewhat confused. |
Hi there, I'm trying to configure
golangci-lint
but I can't for the life of me figure out what's wrong 🙈plugins:
configs.lint.lua
:I have verified that running
golangci-lint
from the command line I get a bunch of linting errors but inside nvim none of these appear 🤔Appreciate any help regarding this 🙏
version installed:
golangci-lint has version 1.61.0 built with go1.23.1 from a1d6c56 on 2024-09-09T14:33:19Z
The text was updated successfully, but these errors were encountered: