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.startPlugins = ["which-key"];
vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere '' vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere ''
require("which-key").setup {} require("which-key").setup {}
local wk = require("which-key") local wk = require("which-key")
wk.register({ wk.register({
key_labels = {
["<space>"] = "SPACE",
["<leader>"] = "SPACE",
["<cr>"] = "RETURN",
["<tab>"] = "TAB",
},
${ ${
if config.vim.tabline.nvimBufferline.enable if config.vim.tabline.nvimBufferline.enable
then '' then ''
-- Buffer -- Buffer
@ -34,7 +40,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.telescope.enable if config.vim.telescope.enable
then '' then ''
["<leader>f"] = { name = "+Telescope" }, ["<leader>f"] = { name = "+Telescope" },
@ -47,7 +53,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.lsp.trouble.enable if config.vim.lsp.trouble.enable
then '' then ''
-- Trouble -- Trouble
@ -58,7 +64,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.lsp.nvimCodeActionMenu.enable if config.vim.lsp.nvimCodeActionMenu.enable
then '' then ''
-- Parent Groups -- Parent Groups
@ -67,7 +73,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.minimap.codewindow.enable || config.vim.minimap.minimap-vim.enable if config.vim.minimap.codewindow.enable || config.vim.minimap.minimap-vim.enable
then '' then ''
-- Minimap -- Minimap
@ -76,7 +82,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.notes.mind-nvim.enable || config.vim.notes.obsidian.enable || config.vim.notes.orgmode.enable if config.vim.notes.mind-nvim.enable || config.vim.notes.obsidian.enable || config.vim.notes.orgmode.enable
then '' then ''
-- Notes -- Notes
@ -87,7 +93,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.filetree.nvimTreeLua.enable if config.vim.filetree.nvimTreeLua.enable
then '' then ''
-- NvimTree -- NvimTree
@ -96,7 +102,7 @@ in {
else "" else ""
} }
${ ${
if config.vim.git.gitsigns.enable if config.vim.git.gitsigns.enable
then '' then ''
-- Git -- Git
@ -105,7 +111,7 @@ in {
else "" else ""
} }
}) })
''; '';
}; };