-
Sorry from the doc I can only figure out what an autocmd should be, configuration below works well: require("legendary").setup({
autocmds = {
{
'FileType',
'nnoremap <buffer> q :helpclose<CR>',
opts = {
pattern = {'help'},
},
},
},
}) while I want to write into a augroup: require("legendary").setup({
augroups = {
{
name = 'quithelp',
clear = true,
{
'FileType',
'nnoremap <buffer> q :helpclose<CR>',
opts = {
pattern = {'help'},
},
},
},
},
}) This just don't work. Anything wrong here? |
Beta Was this translation helpful? Give feedback.
Answered by
Cicero24C
Apr 19, 2022
Replies: 1 comment 1 reply
-
alright, i find it pretty simple, just put augroups into autocmds body. No more bothering needed. require("legendary").setup({
autocmds = {
{
name = 'quithelp',
clear = true,
{
'FileType',
'nnoremap <buffer> q :helpclose<CR>',
opts = {
pattern = {'help'},
},
},
},
},
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrjones2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alright, i find it pretty simple, just put augroups into autocmds body. No more bothering needed.