Add nvim-lazy submodule and add plugin configuration.
This commit is contained in:
parent
f545e30831
commit
b1ad0b623a
39 changed files with 1599 additions and 0 deletions
36
pkgsets/nvim/which-key.nix
Normal file
36
pkgsets/nvim/which-key.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue