feat: migrate old config
This commit is contained in:
1 parent
1a2ce09da2
commit
706ef57d92
31 files changed
+911
-38
No files matched your search
@@ -6,7 +6,7 @@ return {
|
||||
event = { "BufReadPost", "BufNewFile", "BufWritePost" },
|
||||
config = function()
|
||||
local lint = require("lint")
|
||||
lint.linters_by_ft = { go = { "golangcilint" } }
|
||||
lint.linters_by_ft = { go = { "golangcilint" }, rust = { "bacon" }, php = { "mago_lint" } }
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufReadPost", "BufWritePost", "InsertLeave" }, {
|
||||
group = vim.api.nvim_create_augroup("plugins.lint", { clear = true }),
|
||||
@@ -15,9 +15,6 @@ return {
|
||||
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