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