fix: incorrect which-key registry

This commit is contained in:
NotAShelf 2023-04-02 22:54:19 +03:00
parent cecf30652e
commit 264372de09
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22

View file

@ -12,17 +12,16 @@ in {
vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere '' vim.luaConfigRC.whichkey = nvim.dag.entryAnywhere ''
local wk = require("which-key") local wk = require("which-key")
wk.setup {} wk.setup ({
wk.register({
key_labels = { key_labels = {
["<space>"] = "SPACE", ["<space>"] = "SPACE",
["<leader>"] = "SPACE", ["<leader>"] = "SPACE",
["<cr>"] = "RETURN", ["<cr>"] = "RETURN",
["<tab>"] = "TAB", ["<tab>"] = "TAB",
}, }
})
wk.register({
${ ${
if config.vim.tabline.nvimBufferline.enable if config.vim.tabline.nvimBufferline.enable
then '' then ''
@ -31,7 +30,6 @@ in {
["<leader>bm"] = { name = "BufferLineMove" }, ["<leader>bm"] = { name = "BufferLineMove" },
["<leader>bs"] = { name = "BufferLineSort" }, ["<leader>bs"] = { name = "BufferLineSort" },
["<leader>bsi"] = { name = "BufferLineSortById" }, ["<leader>bsi"] = { name = "BufferLineSortById" },
'' ''
else "" else ""
} }
@ -106,6 +104,7 @@ in {
'' ''
else "" else ""
} }
${ ${
if config.vim.markdown.glow.enable if config.vim.markdown.glow.enable
then '' then ''
@ -114,6 +113,7 @@ in {
'' ''
else "" else ""
} }
}) })
''; '';
}; };