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

Example doesn't work in Neovim #2

Open
yatesco opened this issue Jan 6, 2021 · 1 comment
Open

Example doesn't work in Neovim #2

yatesco opened this issue Jan 6, 2021 · 1 comment

Comments

@yatesco
Copy link

yatesco commented Jan 6, 2021

Hi there - inspired by https://www.reddit.com/r/vim/comments/kqf1a9/new_plugin_hotpop_map_keys_and_create_cheatsheet/ I thought I'd give it a try :-).

I added Plug 'mipmip/vim-hotpop' and

  call hotpop#init() "run this before other calls
  
  "              MODE    <SPECIALS>   KEYSEQ          COMMAND                   SHEET-PARAGRAPH                  SHEET HELP_TEXT
  call HotpopMap('nmap', '',          '<leader>?',    ':call HotpopShow()<CR>', 'Hotmap',                  'Open this popup...')
  call HotpopMap('map',  '',          '<leader>d',  ':set background=dark<cr>', "Colors",           "Change to dark background")
  call HotpopMap('map',  '',          '<leader>l', ':set background=light<cr>', "Colors",          "Change to light background")
  call HotpopMap('map',  '',          '<leader>b',              ':Buffers<cr>', 'FZF',                  'FZF with open buffers')
  call HotpopMap('map',  '',          '<leader>f',                ':Files<cr>', 'FZF',    'FZF with files in current directory')   

I then :source % and :PlugInstall.

When I :call HotpopShow() I get:

Error detected while processing function HotpopShow:                                                                                                 
line   17:
E117: Unknown function: popup_create
E15: Invalid expression: popup_create(rows, #{ title: ' My Mappings ', minwidth: 70, maxheight: 30, padding: [1,2,1,2], border: [], filter: function('s:popu
p_filter'), close: 'click' })

:checkhealth:

  health#coc#check
  ========================================================================
    - OK: Environment check passed
  
    - OK: Javascript bundle build/index.js found
    - OK: Service started
  
  health#coc_fzf#check
  ========================================================================
  ## ctags (optional)
    - OK: ctag found
  
  ## fzf.vim (optional)
    - OK: fzf.vim found
  
  health#nvim#check
  ========================================================================
  ## Configuration
    - OK: no issues found
  
  ## Performance
    - OK: Build type: RelWithDebInfo
  
  ## Remote Plugins
    - OK: Up to date
  
  ## terminal
    - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
    - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
    - INFO: $TERM_PROGRAM='Apple_Terminal'
  
  health#provider#check
  ========================================================================
  ## Clipboard (optional)
    - OK: Clipboard tool found: pbcopy
  
  ## Python 2 provider (optional)
    - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
    - ERROR: Python provider error:
      - ADVICE:
        - provider/pythonx: Could not load Python 2:
            /usr/bin/python2 does not have the "neovim" module. :help provider-python
            /usr/bin/python2.7 does not have the "neovim" module. :help provider-python
            python2.6 not found in search path or not executable.
            /usr/bin/python does not have the "neovim" module. :help provider-python
    - INFO: Executable: Not found
  
  ## Python 3 provider (optional)
    - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
    - INFO: Multiple python3 executables found.  Set `g:python3_host_prog` to avoid surprises.
    - INFO: Executable: /usr/local/bin/python3
    - INFO: Other python executable: /usr/bin/python3
    - INFO: Python version: 3.9.1
    - INFO: pynvim version: 0.4.2
    - OK: Latest pynvim is installed.
  
  ## Python virtualenv
    - OK: no $VIRTUAL_ENV
  
  ## Ruby provider (optional)
    - INFO: Ruby: ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
    - INFO: Host: /usr/local/bin/neovim-ruby-host
    - OK: Latest "neovim" gem is installed: 0.8.1
  
  ## Node.js provider (optional)
    - INFO: Node.js: v15.5.1
    - INFO: Nvim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js
    - OK: Latest "neovim" npm/yarn package is installed: 4.9.0
  
  ## Perl provider (optional)
    - ERROR: perl provider error:
      - ADVICE:
        - "Neovim::Ext" cpan module is not installed

on MASTER Neovim updated yesterday.

Help :-)

@mipmip
Copy link
Owner

mipmip commented Jan 11, 2021

I'm afraid it doesn't work on Neovim yet. I'll try to add nvim compatibility soon.

@mipmip mipmip changed the title Example doesn't work Example doesn't work in Neovim Jan 11, 2021
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

2 participants