nixvim fixed which-key.
This commit is contained in:
parent
3153a2314d
commit
b650a618ad
6 changed files with 59 additions and 60 deletions
|
@ -9,9 +9,12 @@
|
|||
plugins.gitsigns = {
|
||||
enable = true;
|
||||
};
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>g" = "+git";
|
||||
};
|
||||
plugins.which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>g";
|
||||
group = "+git";
|
||||
}
|
||||
];
|
||||
keymaps = [
|
||||
{
|
||||
action = ":Gitsigns toggle_current_line_blame<CR>";
|
||||
|
|
|
@ -9,9 +9,12 @@
|
|||
globals = {
|
||||
mapleader = ";";
|
||||
};
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>c" = "+check";
|
||||
};
|
||||
plugins.which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>c";
|
||||
group = "+check";
|
||||
}
|
||||
];
|
||||
keymaps = [
|
||||
{
|
||||
action = ":setlocal spell!<CR>";
|
||||
|
|
|
@ -34,9 +34,12 @@
|
|||
plugins.cmp.settings.sources = [
|
||||
{name = "nvim_lsp";}
|
||||
];
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>l" = "+lsp";
|
||||
};
|
||||
plugins.which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>l";
|
||||
group = "+lsp";
|
||||
}
|
||||
];
|
||||
keymaps = [
|
||||
{
|
||||
action = helpers.mkRaw "vim.lsp.buf.declaration";
|
||||
|
|
|
@ -9,10 +9,16 @@
|
|||
plugins.telescope = {
|
||||
enable = true;
|
||||
};
|
||||
plugins.which-key.registrations = {
|
||||
"<leader>f" = "+telescope";
|
||||
"<leader>fg" = "+telescope git";
|
||||
};
|
||||
plugins.which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>f";
|
||||
group = "+telescope";
|
||||
}
|
||||
{
|
||||
__unkeyed-1 = "<leader>fg";
|
||||
group = "+telescope git";
|
||||
}
|
||||
];
|
||||
keymaps = [
|
||||
{
|
||||
action = ":Telescope find_files<CR>";
|
||||
|
|
|
@ -10,18 +10,7 @@
|
|||
timeout = true;
|
||||
timeoutlen = 300;
|
||||
};
|
||||
plugins.which-key = {
|
||||
enable = true;
|
||||
# TODO: remvoe this once https://github.com/nix-community/nixvim/issues/1901 is fixed.
|
||||
package = pkgs.vimPlugins.which-key-nvim.overrideAttrs (oldAttrs: {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = oldAttrs.src.owner;
|
||||
repo = oldAttrs.src.repo;
|
||||
rev = "0539da005b98b02cf730c1d9da82b8e8edb1c2d2"; # v2.1.0
|
||||
hash = "sha256-gc/WJJ1s4s+hh8Mx8MTDg8pGGNOXxgKqBMwudJtpO4Y=";
|
||||
};
|
||||
});
|
||||
};
|
||||
plugins.which-key.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue