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))))
|
||||
)
|
||||
|
||||
;; ruby
|
||||
|
||||
(setq! lsp-ruby-lsp-use-bundler t)
|
||||
|
||||
|
||||
;; Copilot
|
||||
;; accept completion from copilot and fallback to company
|
||||
|
@ -309,15 +313,20 @@
|
|||
(use-package! gptel
|
||||
:init
|
||||
:config
|
||||
(setq-default gptel-backend (gptel-make-openai "llama-cpp" ;Any name
|
||||
:stream t
|
||||
:protocol "http"
|
||||
:host "100.64.0.3:8080"
|
||||
:models '("test")
|
||||
)
|
||||
gptel-model "test")
|
||||
(setq! gptel-backend (gptel-make-openai "llama-cpp"
|
||||
:stream t
|
||||
:protocol "http"
|
||||
:host "100.64.0.3:8080"
|
||||
:models '("test"))
|
||||
gptel-model "test")
|
||||
|
||||
(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