Last active
June 22, 2017 18:37
-
-
Save billyvg/92736ec011c3cfdac096a1ef6ff341e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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