From 812f1f3b06eb4989ee1bd98889f61a7b18256e17 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 23 Feb 2023 17:01:13 +0300 Subject: [PATCH] feat: update whichkey labels --- modules/utility/binds/which-key/default.nix | 30 ++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/modules/utility/binds/which-key/default.nix b/modules/utility/binds/which-key/default.nix index bd06bf3..1479105 100644 --- a/modules/utility/binds/which-key/default.nix +++ b/modules/utility/binds/which-key/default.nix @@ -16,12 +16,18 @@ in { vim.startPlugins = ["which-key"]; vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere '' - require("which-key").setup {} + require("which-key").setup {} - local wk = require("which-key") - wk.register({ + local wk = require("which-key") + wk.register({ + key_labels = { + [""] = "SPACE", + [""] = "SPACE", + [""] = "RETURN", + [""] = "TAB", + }, - ${ + ${ if config.vim.tabline.nvimBufferline.enable then '' -- Buffer @@ -34,7 +40,7 @@ in { else "" } - ${ + ${ if config.vim.telescope.enable then '' ["f"] = { name = "+Telescope" }, @@ -47,7 +53,7 @@ in { else "" } - ${ + ${ if config.vim.lsp.trouble.enable then '' -- Trouble @@ -58,7 +64,7 @@ in { else "" } - ${ + ${ if config.vim.lsp.nvimCodeActionMenu.enable then '' -- Parent Groups @@ -67,7 +73,7 @@ in { else "" } - ${ + ${ if config.vim.minimap.codewindow.enable || config.vim.minimap.minimap-vim.enable then '' -- Minimap @@ -76,7 +82,7 @@ in { else "" } - ${ + ${ if config.vim.notes.mind-nvim.enable || config.vim.notes.obsidian.enable || config.vim.notes.orgmode.enable then '' -- Notes @@ -87,7 +93,7 @@ in { else "" } - ${ + ${ if config.vim.filetree.nvimTreeLua.enable then '' -- NvimTree @@ -96,7 +102,7 @@ in { else "" } - ${ + ${ if config.vim.git.gitsigns.enable then '' -- Git @@ -105,7 +111,7 @@ in { else "" } - }) + }) ''; };