mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
update basedpyright and vim.diagnostic config
This commit is contained in:
@@ -12,8 +12,7 @@ return {
|
||||
vim = { "vint" },
|
||||
go = { "golangcilint" },
|
||||
}
|
||||
local shellcheck = require("lint").linters.shellcheck
|
||||
shellcheck.args = {
|
||||
lint.linters.shellcheck.args = {
|
||||
"-s",
|
||||
"bash",
|
||||
"-o",
|
||||
@@ -21,10 +20,8 @@ return {
|
||||
"-e",
|
||||
"2250",
|
||||
}
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
group = lint_augroup,
|
||||
callback = function()
|
||||
lint.try_lint()
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user