parsonsmatt/intero-neovim

g:intero_started not in scope when intero_type_on_hover is set in ftplugin

meck opened this issue · 0 comments

meck commented

I've been testing the type on hover functionality, if you set g:intero_type_on_hover=1 in ftplugin and don't start intero at once when the function for hover info checks g:intero_started it isn't set yet due to being in an autoload file. I was thinking of doing a PR but I can see two ways of fixing it:

  1. Make it an autoloaded variable intero#intero_started
  2. Move it to plugin/intero.vim and set it there

The second alternative seems better to me?