We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried something like:
call lexima#add_rule({'char': '<CR>', 'at': '\v^\s*\*\s+.*', 'input': '<CR>* ' })
It does work partially but if I try matching the cursor:
call lexima#add_rule({'char': '<CR>', 'at': '\v^\s*\*\s+.*\%#', 'input': '<CR>* ' })
It no longer works.
The text was updated successfully, but these errors were encountered:
\v can not be used with \%# because it means literary %# sequence matching but not cursor matching.
\v
\%#
%#
How about this. call lexima#add_rule(#{char: '<CR>', at: '^\s*\*\s\+.*\%#', input: '<CR>* ' })
call lexima#add_rule(#{char: '<CR>', at: '^\s*\*\s\+.*\%#', input: '<CR>* ' })
Sorry, something went wrong.
👍
I tried mapping it to bullets.vim plugin (https://github.com/dkarter/bullets.vim/blob/746f92ae05cdcc988857d8e76418326f07af9494/plugin/bullets.vim#L1008C16-L1008C16)
call lexima#add_rule(#{char: '<CR>', at: '^\s*\*\s\+.*\%#', input: '<C-r>=BulletNewLine()<CR>' }) function! BulletNewLine() execute "normal \<Plug>(bullets-newline)" return '' endfunction
Unfortunately, it seems there are some conflicts with cursor positioning so the cursor always ends with *| instead of * |.
*|
* |
No branches or pull requests
I tried something like:
It does work partially but if I try matching the cursor:
It no longer works.
The text was updated successfully, but these errors were encountered: