feat: initial commit
- basic config according to spec
This commit is contained in:
commit
9b0446c5f6
36 files changed
+1114
No files matched your search
@@ -0,0 +1,25 @@
|
||||
-- Only linters that don't run as an LSP.
|
||||
return {
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
cond = vim.g.profile == "full",
|
||||
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
lint.linters_by_ft = { go = { "golangcilint" } }
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, {
|
||||
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
|
||||
callback = function(ev)
|
||||
if vim.b[ev.buf].bigfile then
|
||||
return
|
||||
end
|
||||
lint.try_lint()
|
||||
if vim.bo[ev.buf].filetype == "php" and vim.fs.root(ev.buf, "phpstan.neon") then
|
||||
lint.try_lint("phpstan")
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user