Fix gen api part ii

Currently dependent on https://github.com/myitcv/neovim-editor/tree/myitcv-provider-autocmd which in turn is dependent on https://github.com/neovim/neovim/pull/1335