Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Prototype adding the popupmenu_external option
Browse files Browse the repository at this point in the history
  • Loading branch information
extr0py committed Dec 3, 2016
1 parent 4e5b17e commit 2d3e535
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion browser/src/NeovimInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,18 @@ export class NeovimInstance extends EventEmitter implements INeovimInstance {
remote.app.quit()
})

this._neovim.uiAttach(80, 40, true, (err) => {
const options = {
"rgb": true,
"popupmenu_external": true
}

// Workaround for bug in neovim/node-client
// The 'uiAttach' method overrides the new 'nvim_ui_attach' method
this._neovim._session.request("nvim_ui_attach", [80, 40, options], (err) => {
console.log("Attach success")

// this._neovim.setOption("popupmenu_external", true)

performance.mark("NeovimInstance.Plugins.Start")
this._pluginManager.startPlugins(this)
performance.mark("NeovimInstance.Plugins.End")
Expand Down

0 comments on commit 2d3e535

Please sign in to comment.