dotfiles/.config/nvim/lua/plugins/extras/linting/pylint.lua
Sergio Laín f9d52ab208
♻️ refactor(nvim): big change in adding formatters and linters
all the formatters and linters are dynamically added, and they are going to the extras modules
2023-11-16 15:00:10 +01:00

17 lines
423 B
Lua

return {
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "pylint" })
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
opts.linters_by_ft.python = opts.linters_by_ft.python or {}
table.insert(opts.linters_by_ft.python, "pylint")
return opts
end,
},
}