nvim: add plugin 'mfussenegger/nvim-lint'

This commit is contained in:
Fernando Schauenburg 2024-07-14 21:29:49 +02:00
parent c453f2909e
commit 82979b2153
3 changed files with 21 additions and 3 deletions

View file

@ -26,6 +26,7 @@
"nginx.vim": { "branch": "master", "commit": "cffaec54f0c7f9518de053634413a20e90eac825" },
"nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
"nvim-colorizer.lua": { "branch": "master", "commit": "36c610a9717cc9ec426a07c8e6bf3b3abcb139d6" },
"nvim-lint": { "branch": "master", "commit": "efc6fc83f0772283e064c53a8f9fb5645bde0bc0" },
"nvim-lspconfig": { "branch": "master", "commit": "1bc83418927003552505ec66fa5d6cffae953f6a" },
"nvim-luaref": { "branch": "main", "commit": "9cd3ed50d5752ffd56d88dd9e395ddd3dc2c7127" },
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
@ -55,4 +56,4 @@
"vim-commentary": { "branch": "master", "commit": "f67e3e67ea516755005e6cccb178bc8439c6d402" },
"vim-fugitive": { "branch": "master", "commit": "e7bf502a6ae492f42a91d231864e25630286319b" },
"virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" }
}
}

View file

@ -32,8 +32,6 @@ M.setup = function()
return
end
vim.keymap.set("n", "<leader>L", "<cmd>Lazy<cr>")
lazy.setup {
spec = "fschauen.plugins",
dev = {

View file

@ -0,0 +1,19 @@
return {
"mfussenegger/nvim-lint",
keys = {
{
"<leader>L",
function()
require("lint").try_lint()
end,
desc = " [L]int file",
},
},
config = function()
require("lint").linters_by_ft = {
sh = { "shellcheck" },
}
end,
}