feat: Integrate Tabby package into doomemacs
This commit is contained in:
parent
fca6628133
commit
35242b7645
2 changed files with 23 additions and 0 deletions
|
@ -361,3 +361,22 @@
|
|||
(magit-gptcommit-status-buffer-setup))
|
||||
|
||||
;; (setq! magit-gptcommit-llm-provider (make-llm-openai-compatible :key "OPENAI-KEY" :url "http://100.64.0.3:8080/v1/")
|
||||
|
||||
(defvar my-C-f-funcs '())
|
||||
(defun my-C-f ()
|
||||
(interactive)
|
||||
(unless (call-interactively 'tabby-accept-completion)
|
||||
(forward-char)))
|
||||
|
||||
(use-package! tabby
|
||||
:hook (prog-mode . tabby-mode)
|
||||
:init
|
||||
(setq tabby-idle-delay 0.5)
|
||||
(setq tabby--connection "http://100.64.0.3:8081")
|
||||
:config
|
||||
(add-to-list 'my-C-f-funcs 'tabby-accept-completion)
|
||||
;; (evil-define-key 'insert tabby-mode-map (kbd "C-f") 'tabby-accept-completion)
|
||||
;; (evil-define-key 'insert tabby-mode-map (kbd "C-f") 'my-C-f)
|
||||
(evil-define-key 'insert tabby-mode-map (kbd "C-f") 'my-C-f)
|
||||
(evil-define-key 'insert tabby-mode-map (kbd "C-M-j") 'tabby-dismiss)
|
||||
(evil-define-key 'insert tabby-mode-map (kbd "C-M-l") 'tabby-accept-completion-by-line))
|
||||
|
|
|
@ -59,6 +59,10 @@
|
|||
(package! magit-gptcommit :recipe (:host github :repo "douo/magit-gptcommit" :branch "master"))
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(package! tabby
|
||||
:recipe (:host github :files ("*.el" "node_scripts")
|
||||
:repo "alan-w-255/tabby.el"))
|
||||
|
||||
(package! activity-watch-mode)
|
||||
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||
|
|
Loading…
Add table
Reference in a new issue