diff options
| author | David Lukes <dafydd.lukes@gmail.com> | 2020-04-28 05:48:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 20:48:35 -0700 |
| commit | 9a8e3543eed294099002413d1b9b99227719bbbf (patch) | |
| tree | 3b5f4c56aaf79ab0dc21289a75ca6f29ebd1f53f /lua/nvim_lsp/tsserver.lua | |
| parent | [docgen] Update README.md (diff) | |
| download | nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar.gz nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar.bz2 nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar.lz nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar.xz nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.tar.zst nvim-lspconfig-9a8e3543eed294099002413d1b9b99227719bbbf.zip | |
Use builtin terminal for util.sh output (#208)
close https://github.com/neovim/nvim-lsp/issues/207
close https://github.com/neovim/nvim-lsp/pull/201
Using `termopen()`, `util.sh` gets full terminal functionality for free:
- progress bars leveraging `\r` and other more fancy output types (e.g.
curses UIs)
- interactive prompts
- canceling with `Ctrl-C`
- etc.
The drawback is that currently (see https://github.com/neovim/neovim/issues/7607),
the `on_exit` callback for `termopen()`/`jobstart()` *has* to be a VimL
function, which means a global VimL function has to be created
on-the-fly with a name which hopefully won't clobber anything that's
already defined.
Like #201, this commit makes sure that the output buffer remains open if
the script exits with anything else than 0.
Diffstat (limited to 'lua/nvim_lsp/tsserver.lua')
0 files changed, 0 insertions, 0 deletions
