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

Suspending autoformatting doesn't work? #88

Open
jgonera opened this issue Jul 21, 2020 · 3 comments
Open

Suspending autoformatting doesn't work? #88

jgonera opened this issue Jul 21, 2020 · 3 comments

Comments

@jgonera
Copy link

jgonera commented Jul 21, 2020

Thank you for an excellent plugin! Makes writing Markdown much easier. The only time I'd like to disable it is when editing lists so I added let g:pencil#map#suspend_af = 'K' to my config. However, hitting K+i/o/a seems to have the same effect as hitting only i/o/a (autoformatting enabled).

My config looks like this:

augroup pencil
  autocmd!
  autocmd FileType markdown,mkd call pencil#init()
augroup END

let g:pencil#map#suspend_af = 'K'

Using Neovim 0.4.3.

Am I doing something wrong?

@jgonera
Copy link
Author

jgonera commented Oct 17, 2020

Has anyone been able to get this to work and could share their config?

@matkozak
Copy link

matkozak commented Oct 21, 2020

Does not work for me either. Also Neovim.

However, making a shortcut for the PencilToggle command (to Ctrl+P with nmap <c-p> :PencilToggle<CR> for example) is a low-effort solution that achieves more or less the same thing for me.

@janderland
Copy link

This function doesn't work for me either in Neovim 0.10.1.

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

3 participants