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

Pass end symbol to the command as a fallback option #23

Open
anywhim opened this issue Aug 20, 2018 · 0 comments
Open

Pass end symbol to the command as a fallback option #23

anywhim opened this issue Aug 20, 2018 · 0 comments

Comments

@anywhim
Copy link

anywhim commented Aug 20, 2018

Hi, nice plugin.

Can we add ability to pass end symbol to the command as a fallback option? I'm not very much into Vim Script, but maybe we can add mappings like this:

autocmd FileType javascript,css,YOUR_LANG nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon)
autocmd FileType javascript,css,YOUR_LANG nmap <silent> <Leader>;; <Plug>(cosco-commaOrSemiColon(";"))
autocmd FileType javascript,css,YOUR_LANG nmap <silent> <Leader>;, <Plug>(cosco-commaOrSemiColon(","))

So, we can press default mapping, see what the plugin did, if the result is incorrect then press ";" or "," to force the plugin to insert or replace the symbol at the end of line.

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

1 participant