refactor: small clean up

nixos
Moritz Böhme 2024-07-19 16:58:38 +02:00
parent 891283aa43
commit 9f931b563f
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 14 additions and 12 deletions

View File

@ -1,36 +1,38 @@
{ pkgs, lib, inputs, ... }:
with builtins;
let
inherit (lib) readFile;
in
{
config.home-manager.users.moritz.programs.neovim.lazy.plugins = with pkgs.vimPlugins; [
config.home-manager.users.moritz.programs.neovim.lazy.plugins = [
{
plugin = which-key-nvim;
plugin = pkgs.vimPlugins.which-key-nvim;
lazy = false;
conf = readFile ./lua/which-key-nvim.lua;
}
{
plugin = catppuccin-nvim;
plugin = pkgs.vimPlugins.catppuccin-nvim;
conf = readFile ./lua/catppuccin-nvim.lua;
lazy = false;
priority = 99;
}
{
plugin = todo-comments-nvim;
dependencies = [{ plugin = plenary-nvim; }];
plugin = pkgs.vimPlugins.todo-comments-nvim;
dependencies = [{ plugin = pkgs.vimPlugins.plenary-nvim; }];
opts = { };
}
{
plugin = dressing-nvim;
plugin = pkgs.vimPlugins.dressing-nvim;
event = [ "VeryLazy" ];
}
{
plugin = gitsigns-nvim;
plugin = pkgs.vimPlugins.gitsigns-nvim;
event = [ "BufReadPost" "BufNewFile" ];
conf = readFile ./lua/gitsigns-nvim.lua;
dependencies = [{ plugin = which-key-nvim; }];
dependencies = [{ plugin = pkgs.vimPlugins.which-key-nvim; }];
}
{
plugin = pkgs.vimUtils.buildVimPlugin {
plugin = pkgs.vimPlugins.pkgs.vimUtils.buildVimPlugin {
pname = "hawtkeys-nvim";
version = lib.my.mkVersionInput inputs.hawtkeys-nvim;
src = inputs.hawtkeys-nvim;
@ -38,8 +40,8 @@ with builtins;
cmd = [ "Hawtkeys" "HawtkeysAll" "HawtkeysDupes" ];
opts = { };
dependencies = [
{ plugin = plenary-nvim; }
{ plugin = nvim-treesitter; }
{ plugin = pkgs.vimPlugins.plenary-nvim; }
{ plugin = pkgs.vimPlugins.nvim-treesitter; }
];
}
];