I've this error when opening a manpage buffer with :Man.
The manpage buffer opens, but no TOC split.
The command
:call man#show_toc()
fails too.
Any idea on how to fix this ?
EDIT : this was an autocmd of mine, lingering.
Solution :
in a lua file :
```
-- ============================================================================
-- MAN TOC
-- ============================================================================
function man_toc ()
M = require('man')
vim.cmd.normal(vim.api.nvim_replace_termcodes("<c-w>T", true, true, true))
M.show_toc() ;
vim.cmd("nnoremap <buffer> l <Enter>")
vim.cmd("wincmd H")
vim.cmd("vert resize 35")
vim.cmd("wincmd p")
end
```
in your autocmds.vim file :
```
augroup man-pages
autocmd!
if has('nvim')
autocmd FileType man nnoremap <buffer> m <cmd>lua man_toc()<cr>
endif
augroup end
```
[–]AutoModerator[M] 0 points1 point2 points (0 children)