Add keybind for gptel & fix ruby lsp
This commit is contained in:
parent
95b2351af1
commit
cd5dbc3697
1 changed files with 17 additions and 8 deletions
|
@ -288,6 +288,10 @@
|
||||||
(centaur-tabs-local-mode))))
|
(centaur-tabs-local-mode))))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; ruby
|
||||||
|
|
||||||
|
(setq! lsp-ruby-lsp-use-bundler t)
|
||||||
|
|
||||||
|
|
||||||
;; Copilot
|
;; Copilot
|
||||||
;; accept completion from copilot and fallback to company
|
;; accept completion from copilot and fallback to company
|
||||||
|
@ -309,15 +313,20 @@
|
||||||
(use-package! gptel
|
(use-package! gptel
|
||||||
:init
|
:init
|
||||||
:config
|
:config
|
||||||
(setq-default gptel-backend (gptel-make-openai "llama-cpp" ;Any name
|
(setq! gptel-backend (gptel-make-openai "llama-cpp"
|
||||||
:stream t
|
:stream t
|
||||||
:protocol "http"
|
:protocol "http"
|
||||||
:host "100.64.0.3:8080"
|
:host "100.64.0.3:8080"
|
||||||
:models '("test")
|
:models '("test"))
|
||||||
)
|
gptel-model "test")
|
||||||
gptel-model "test")
|
|
||||||
(add-hook 'gptel-post-response-functions 'gptel-end-of-response)
|
(add-hook 'gptel-post-response-functions 'gptel-end-of-response)
|
||||||
(add-hook 'gptel-post-stream-hook 'gptel-auto-scroll))
|
(add-hook 'gptel-post-stream-hook 'gptel-auto-scroll)
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
"<tab>" 'gptel-complete
|
||||||
|
"TAB" 'gptel-complete)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue