feat: update whichkey labels

This commit is contained in:
NotAShelf 2023-02-23 17:01:13 +03:00
parent 5090120ac2
commit 812f1f3b06
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -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",
["<leader>"] = "SPACE",
["<cr>"] = "RETURN",
["<tab>"] = "TAB",
},
${
${
if config.vim.tabline.nvimBufferline.enable
then ''
-- Buffer
@ -34,7 +40,7 @@ in {
else ""
}
${
${
if config.vim.telescope.enable
then ''
["<leader>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 ""
}
})
})
'';
};