diff --git a/lua/lazyvim/plugins/extras/lang/nix.lua b/lua/lazyvim/plugins/extras/lang/nix.lua new file mode 100644 index 00000000..b349bb2c --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/nix.lua @@ -0,0 +1,30 @@ +return { + recommended = { + ft = "nix", + root = "flake.nix", + }, + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "nix" }) + end, + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + nil_ls = {}, + }, + }, + }, + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + nix = { "nixfmt" }, + }, + }, + }, +}