feat: oh boy i missed lazyvim

This commit is contained in:
Teesh 2026-02-06 18:24:03 +02:00
parent e5918cc142
commit d46886dc0b

View file

@ -6,7 +6,7 @@
programs.neovim.defaultEditor = true; programs.neovim.defaultEditor = true;
}; };
flake.modules.homeManager.base = { flake.modules.homeManager.base = {pkgs, ...}: {
imports = [inputs.lazyvim.homeManagerModules.default]; imports = [inputs.lazyvim.homeManagerModules.default];
programs.neovim.enable = true; programs.neovim.enable = true;
@ -15,12 +15,45 @@
programs.lazyvim = { programs.lazyvim = {
enable = true; enable = true;
pluginSource = "nixpkgs"; pluginSource = "nixpkgs";
extraPackages = with pkgs; [
nixd
alejandra
statix
];
plugins.catppuccin = '' plugins.catppuccin = ''
return { "LazyVim/LazyVim", opts = { colorscheme = "catppuccin" } } return { "LazyVim/LazyVim", opts = { colorscheme = "catppuccin" } }
''; '';
plugins.neogit = '' plugins.neogit = ''
return { "NeogitOrg/neogit", opts = {}, keys = { { "<leader>gg", "<cmd>Neogit<cr>" } } } return { "NeogitOrg/neogit", opts = {}, keys = { { "<leader>gg", "<cmd>Neogit<cr>" } } }
''; '';
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 = { extras = {
lang.nix = { lang.nix = {
enable = true; enable = true;