feat(lang): add nix language support

This commit is contained in:
Izel Nakri 2024-04-08 01:57:09 +02:00 committed by Folke Lemaitre
parent 4ef42b4578
commit 9956d3b464

View file

@ -0,0 +1,35 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "nix" })
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"nixpkgs-fmt",
"nil",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
["nil"] = {},
},
},
},
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
nix = { "nixfmt" },
},
},
},
}