49 lines
961 B
Lua
49 lines
961 B
Lua
return {
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
vim.list_extend(opts.ensure_installed, {
|
|
"nix",
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"williamboman/mason.nvim",
|
|
opts = function(_, opts)
|
|
vim.list_extend(opts.ensure_installed, {
|
|
"nil",
|
|
})
|
|
end,
|
|
},
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
nil_ls = {},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
"stevearc/conform.nvim",
|
|
opts = function(_, opts)
|
|
opts.formatters_by_ft.nix = opts.formatters_by_ft.nix or {}
|
|
table.insert(opts.formatters_by_ft.nix, "alejandra")
|
|
return opts
|
|
end,
|
|
},
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
opts = function(_, opts)
|
|
opts.linters_by_ft.nix = opts.linters_by_ft.nix or {}
|
|
table.insert(opts.linters_by_ft.nix, "statix")
|
|
return opts
|
|
end,
|
|
},
|
|
{
|
|
"luckasRanarison/nvim-devdocs",
|
|
optional = true,
|
|
ensure_installed = {
|
|
"nix",
|
|
},
|
|
},
|
|
}
|