nvim: move to services we do not specify a pkgset

This commit is contained in:
Kevin Baensch 2025-07-05 20:08:20 +02:00
parent 465a6b19d1
commit 11b98d8146
Signed by: derped
GPG key ID: C0F1D326C7626543
45 changed files with 38 additions and 37 deletions

View file

@ -0,0 +1,36 @@
{
lib,
config,
...
}:
lib.mkIf (lib.elem "nvim::which-key" config.machine.pkgs) {
programs.nvim-lazy.lazyPlugins = [
{
dir = vPlug: vPlug.which-key-nvim;
event = [ "VeryLazy" ];
keys = [
{
bind = "<leader>?";
cmdIsFunction = true;
cmd = # lua
''
function()
require("which-key").show({ global = false })
end
'';
opts = {
desc = "Buffer Local Keymaps (which-key)";
};
}
];
init = # lua
''
function()
vim.o.timeout = off
vim.o.ttimeout = off
end
'';
}
];
}