46 lines
1.8 KiB
Nix
46 lines
1.8 KiB
Nix
# homepage: https://github.com/folke/which-key.nvim
|
|
# nixvim doc: https://nix-community.github.io/nixvim/plugins/which-key/index.html
|
|
{ icons, ... }:
|
|
|
|
{
|
|
opts = {
|
|
enable = true;
|
|
|
|
|
|
# Disable which-key when in neo-tree or telescope
|
|
|
|
# Customize section names (prefixed mappings)
|
|
registrations = {
|
|
"<leader>b".name = "${icons.Tab} Buffers";
|
|
"<leader>bs".name = "${icons.Sort} Sort Buffers";
|
|
"<leader>d".name = "${icons.Debugger} Debugger";
|
|
"<leader>f".name = "${icons.Search} Find";
|
|
"<leader>g".name = "${icons.Git} Git";
|
|
"<leader>l".name = "${icons.ActiveLSP} Language Tools";
|
|
"<leader>m".name = " Markdown";
|
|
"<leader>s".name = "${icons.Session} Session";
|
|
"<leader>t".name = "${icons.Terminal} Terminal";
|
|
"<leader>u".name = "${icons.Window} UI/UX";
|
|
";".name = "Arrow buffers"; # This should move to arrow.nix when moving to which-key.add()
|
|
"m".name = "Arrow marks"; # This should move to arrow.nix when moving to which-key.add(
|
|
};
|
|
|
|
|
|
# registrations = {
|
|
# "<leader>b".name = "${icons.Tab} Buffers";
|
|
# "<leader>bs".name = "${icons.Sort} Sort Buffers";
|
|
# "<leader>d".name = "${icons.Debugger} Debugger";
|
|
# "<leader>f".name = "${icons.Search} Find";
|
|
# "<leader>g".name = "${icons.Git} Git";
|
|
# "<leader>l".name = "${icons.ActiveLSP} Language Tools";
|
|
# "<leader>m".name = " Markdown";
|
|
# "<leader>s".name = "${icons.Session} Session";
|
|
# "<leader>t".name = "${icons.Terminal} Terminal";
|
|
# "<leader>u".name = "${icons.Window} UI/UX";
|
|
# };
|
|
};
|
|
|
|
# Enable catppuccin colors
|
|
# https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/which_key.lua
|
|
rootOpts.colorschemes.catppuccin.settings.integrations.which_key = true;
|
|
}
|