26 lines
621 B
Lua
26 lines
621 B
Lua
return {
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = function(_, opts)
|
|
opts.ensure_installed = opts.ensure_installed or {}
|
|
vim.list_extend(opts.ensure_installed, { "selene" })
|
|
end,
|
|
},
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
opts = function(_, opts)
|
|
opts.linters_by_ft.lua = opts.linters_by_ft.lua or {}
|
|
table.insert(opts.linters_by_ft.lua, "selene")
|
|
|
|
opts.linters = {
|
|
selene = {
|
|
condition = function(ctx)
|
|
return vim.fs.find({ "selene.toml" }, { path = ctx.filename, upward = true })[1]
|
|
end,
|
|
},
|
|
}
|
|
|
|
return opts
|
|
end,
|
|
},
|
|
}
|