parsonsmatt / intero-neovim

A neovim plugin for Intero, forked from ghcmod-vim
218 stars 28 forks source link

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

Closed meck closed 6 years ago

meck commented 6 years ago

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?