Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unfold doc buffer #6

Open
illia-danko opened this issue May 14, 2021 · 4 comments
Open

unfold doc buffer #6

illia-danko opened this issue May 14, 2021 · 4 comments

Comments

@illia-danko
Copy link
Contributor

@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?

@kkharji
Copy link
Owner

kkharji commented May 14, 2021

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

@illia-danko
Copy link
Contributor Author

@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

@kkharji
Copy link
Owner

kkharji commented May 14, 2021

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)

@illia-danko
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants