mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- Shell script formatting: shellharden made 2nd choice and NOT 2nd formatter - Keymaps organized: more accessible, more consistent TODO - Ideavimrc fix backspace issue - Make the keymaps in sync with NVim
26 lines
738 B
Lua
26 lines
738 B
Lua
return {
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
lazy = true,
|
|
event = { "BufReadPre", "BufNewFile" },
|
|
config = function()
|
|
local lint = require("lint")
|
|
|
|
-- Linters are only required for dynamically typed languages
|
|
lint.linters_by_ft = {
|
|
python = { "pylint" },
|
|
["*"] = { "codespell" },
|
|
}
|
|
|
|
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,
|
|
})
|
|
end,
|
|
},
|
|
}
|