Skip to content

proper way to set group label names for which-key only for norg files #940

Answered by max397574
osamuaoki asked this question in Q&A
Discussion options

You must be logged in to vote

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:

vim.api.nvim_create_autocmd("BufEnter",{
pattern="*.norg",
callback=function()
wk.register(...,{buffer=true})
end
})

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@osamuaoki
Comment options

@ddbrierton
Comment options

Answer selected by osamuaoki
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants