tabby/clients/vim
Zhiming Ma ea0252c17d
Refactor to clarify agent interface. (#142)
* Refactor to clarify agent interface.

* Refactor stdio and extract types.

* Fix notification type.
2023-05-23 18:50:57 -07:00
..
autoload Refactor to clarify agent interface. (#142) 2023-05-23 18:50:57 -07:00
doc VIM plugin: Improve commands, and help document. (#113) 2023-04-21 13:06:16 +08:00
node_scripts Refactor to clarify agent interface. (#142) 2023-05-23 18:50:57 -07:00
plugin Vim plugin: only trigger completion request when text changed. (#139) 2023-05-18 08:48:13 -07:00
.gitignore Move vim plugin node scripts to agent lib. (#141) 2023-05-22 09:34:56 -07:00
README.md VIM plugin: Improve commands, and help document. (#113) 2023-04-21 13:06:16 +08:00
package.json Refactor to clarify agent interface. (#142) 2023-05-23 18:50:57 -07:00
yarn.lock Refactor to clarify agent interface. (#142) 2023-05-23 18:50:57 -07:00

README.md

Tabby VIM extension

Requirements

  1. VIM 9.0+ with +job and +textprop features enabled, or NeoVIM 0.6.0+.
  2. Node.js 16.0+.

Getting started

Plug

" Make sure that the filetype plugin has been enabled.
filetype plugin on

" Assume using vim-plug as plugin manager
Plug 'TabbyML/tabby', {'rtp': 'clients/vim'}

" Set URL of Tabby server
let g:tabby_server_url = 'http://127.0.0.1:5000'

Usage

  1. In insert mode, Tabby will show code suggestion when you stop typing. Press <Tab> to accpet the current suggestion, <M-]> to see the next suggestion, <M-[> to see previous suggestion, or <C-]> to dismiss.
  2. Use command :Tabby enable to enable, :Tabby disable to disable Tabby, and :Tabby status to check status.
  3. Use command :help Tabby for more information.