Skip to content

Commit

Permalink
Add consult xref and new ollama model
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraveiro committed May 2, 2024
1 parent 7e83acb commit 278cd4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions config/development.org
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,10 @@ START and END mark the region."

(add-hook 'csharp-ts-mode-hook
(lambda ()
(setq c-sharp csharp-ts-mode--indent-rules
(setq csharp-ts-mode--indent-rules
`((c-sharp
,@(alist-get 'c-sharp csharp-ts-mode--indent-rules)
((parent-is "parameter_list") parent-bol csharp-ts-mode-indent-offset)
((parent-is "parameter_list") first-sibling 1)
((parent-is "member_access_expression") parent-bol csharp-ts-mode-indent-offset))))))


Expand Down Expand Up @@ -1043,9 +1043,12 @@ TODO: for some reason we do not trigger the mode with =/**=, it seems to require
:init
(setopt ellama-language "English")
(require 'llm-ollama)
(setopt ellama-provider
(make-llm-ollama
:chat-model "llama3" :embedding-model "llama3")))
(setopt ellama-providers
'(("llama3" . (make-llm-ollama
:chat-model "llama3" :embedding-model "llama3"))
("phi3" . (make-llm-ollama
:chat-model "phi3" :embedding-model "phi3"))))
)
#+end_src

* Eldoc
Expand Down
3 changes: 3 additions & 0 deletions config/features.org
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,9 @@ versions of built-in Emacs commands.
(setq consult-project-root-function #'projectile-project-root
consult-narrow-key "<"))

(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)

(use-package consult-flycheck :after flycheck)

;; Consult directory navigation
Expand Down

0 comments on commit 278cd4a

Please sign in to comment.