lispdocs.nvim icon indicating copy to clipboard operation
lispdocs.nvim copied to clipboard

unfold doc buffer

Open illia-danko opened this issue 3 years ago • 4 comments

@tami5 hi, I use specific markdown fold settings, but I want not to use them inside the doc buffer. I came up with something like:

let g:lispdocs_mappings = 0
nnoremap <silent><leader>hh :lua require'lispdocs'.split{buf = {set = nofoldenable}}<cr>

but it has not any effect for me. May you pls provide with insight of how setting up it properly?

illia-danko avatar May 14 '21 12:05 illia-danko

Oh I see, okay try buf = {foldenable = false}.

kkharji avatar May 14 '21 13:05 kkharji

@tami5 thank you for the response, unfortunately it doesn't work (no effect as well as no error), buf = {nofoldenable = true} didn't help either

illia-danko avatar May 14 '21 13:05 illia-danko

Okay this neovim core issue 😆 sometimes some setting works on window level other time on a buffer level. so win = {foldenable = false} or win = {nofoldenable = true} will work (I hope)

kkharji avatar May 14 '21 14:05 kkharji

Neither of those two work for me: The mapping looks like:

nnoremap <silent><leader>hh :lua require'lispdocs'.split{win = {nofoldenable = true}}<cr>

but still has no effect. If I send :setlocal nofoldenable on a buffer it leads to no problem and works as expected.

illia-danko avatar May 14 '21 14:05 illia-danko