dotfiles/home/private_dot_config/nvim/lua/plugins/language/nim.lua

26 lines
609 B
Lua
Raw Normal View History

2023-11-30 14:25:23 -06:00
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,
},
}