An unofficial tabby plugin for Emacs. Heavily borrow from copilot.el and the official tabby.vim plugin.
Ensure you installed Node.js v18+. (You can specify the path to node executable by setting tabby-node-executable.)
git clone this repository.
(add-to-list 'load-path "path_to_tabby.el_directory")
(require 'tabby)
;; example. active tabby-mode locally when entering go-ts-mode.
(add-hook 'go-ts-mode-hook 'tabby-mode)
Here is my configuration.
(evil-define-key 'insert tabby-mode-map
(kbd "C-j") 'tabby-accept-completion)
(evil-define-key 'insert tabby-mode-map
(kbd "C-<tab>") 'tabby-accept-completion-by-word)
(evil-define-key 'insert tabby-mode-map
(kbd "C-l") 'tabby-accept-completion-by-line)
This plugin works on my machine, but there may be many bugs that have not been discovered yet. Please feel free to raise an issue if you encounter any problems.