diff --git a/modules/base/neovim.nix b/modules/base/neovim.nix index bfc1dda..226263d 100644 --- a/modules/base/neovim.nix +++ b/modules/base/neovim.nix @@ -6,7 +6,7 @@ programs.neovim.defaultEditor = true; }; - flake.modules.homeManager.base = { + flake.modules.homeManager.base = {pkgs, ...}: { imports = [inputs.lazyvim.homeManagerModules.default]; programs.neovim.enable = true; @@ -15,12 +15,45 @@ programs.lazyvim = { enable = true; pluginSource = "nixpkgs"; + extraPackages = with pkgs; [ + nixd + alejandra + statix + ]; plugins.catppuccin = '' return { "LazyVim/LazyVim", opts = { colorscheme = "catppuccin" } } ''; plugins.neogit = '' return { "NeogitOrg/neogit", opts = {}, keys = { { "gg", "Neogit" } } } ''; + plugins.nix = '' + return { + { + "stevearc/conform.nvim", + opts = { + formatters_by_ft = { + nix = { "alejandra" }, + }, + }, + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + nixd = {}, + }, + }, + }, + { + "mfussenegger/nvim-lint", + opts = { + linters_by_ft = { + nix = { "statix" }, + }, + }, + } + } + ''; extras = { lang.nix = { enable = true;