25 lines
609 B
Lua
25 lines
609 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
if type(opts.ensure_installed) == "table" then
|
|
vim.list_extend(opts.ensure_installed, { "nim", "nim_format_string" })
|
|
end
|
|
end,
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = function(_, opts)
|
|
opts.ensure_installed = vim.list_extend(opts.ensure_installed or {}, {
|
|
"nimlsp",
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"nvimtools/none-ls.nvim",
|
|
opts = function(_, opts)
|
|
local nls = require("null-ls")
|
|
table.insert(opts.sources or {}, nls.builtins.formatting.nimpretty)
|
|
end,
|
|
},
|
|
}
|