Skip to content

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

@anywhim

Description

@anywhim

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions