feat: oh boy i missed lazyvim
This commit is contained in:
parent
e5918cc142
commit
d46886dc0b
1 changed files with 34 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue