-
Currently, norg doesn't set group label names so I see many "+prefix" displayed for non-final key steps in multi-key sequences. I can't figure out how to bind group label names display just for norg file buffers. Let me explain with an example. The following discussion example uses the setting:
Typing I know I can add proper group label names by tweaking which-key. But this get activated even for non-norg files.
Slightly better (but hackish fix can be done in keybinds.lua of norg:
Then typing This looks better but not really better than whick-key configuration above when multiple norg and no-neorg files are edited I think Anyone have thoughts? (I don't think #381 nor #679 address issues discussed here.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
when you do that thing inside the neorg config that does absolutely nothing you can just do something like this: vim.api.nvim_create_autocmd("BufEnter",{
pattern="*.norg",
callback=function()
wk.register(...,{buffer=true})
end
}) |
Beta Was this translation helpful? Give feedback.
-
OMG THANK YOU! |
Beta Was this translation helpful? Give feedback.
when you do that thing inside the neorg config that does absolutely nothing
the only thing it does it that the mappings aren't registered until you start neorg the first time
then they'll also be in non-norg buffers
group names is a which-key thing
this shouldn't be done from neorg
you can just do something like this: