Skip to content

Instantly share code, notes, and snippets.

@billyvg
Last active June 22, 2017 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billyvg/92736ec011c3cfdac096a1ef6ff341e6 to your computer and use it in GitHub Desktop.
Save billyvg/92736ec011c3cfdac096a1ef6ff341e6 to your computer and use it in GitHub Desktop.
// From
nvim.tabpage.then(tabpage => tabpage.window).then(window => window.buffer).then(buffer => buffer.lines).then(lines => lines);
// To
const lines = await nvim.tabpage.window.buffer.lines;
// or without await
nvim.tabpage.window.buffer.lines.then(lines => lines);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment