Skip to content

Add option to check prefix override. #26

Open
@nametake

Description

Hi, thank you for the great plugin. I use it very conveniently.

But I don't want to check if the prefix overrides other commands.

This is because I disable popup and use the prefix set in gopher_map in the prefix of another plugin command.

So how about adding the following options?

let g:gopher_map = {
      \   '_check_map': 0,
      \ }

And, ftplugin/go.vim.

  let s:is_check = g:gopher_map['_check_map']
  let s:has_norm = s:is_check ? mapcheck(g:gopher_map['_nmap_prefix'], 'n') isnot# '' : 0
  let s:has_ins  = s:is_check ? mapcheck(g:gopher_map['_imap_prefix'], 'i') isnot# '' : 0

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions