mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
fix: incorrect which-key registry
This commit is contained in:
parent
cecf30652e
commit
264372de09
1 changed files with 21 additions and 21 deletions
|
@ -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 ""
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue