feat: Integrate Tabby package into doomemacs

This commit is contained in:
Tristan D. 2024-07-11 20:23:36 +02:00
parent fca6628133
commit 35242b7645
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4
2 changed files with 23 additions and 0 deletions

View file

@ -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))

View file

@ -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...