Added lsp-ai to helix config
This commit is contained in:
parent
79e0b3484e
commit
abd2e63e20
nate-work
@ -48,6 +48,7 @@ C-n = "select_next_sibling"
|
|||||||
x = ":wbc!"
|
x = ":wbc!"
|
||||||
s = ":w!" # save file
|
s = ":w!" # save file
|
||||||
o = ":config-open"
|
o = ":config-open"
|
||||||
|
c = ["vsplit", ":open llm-chat.md"]
|
||||||
|
|
||||||
[keys.normal.g]
|
[keys.normal.g]
|
||||||
"/" = "goto_next_buffer"
|
"/" = "goto_next_buffer"
|
||||||
|
@ -1,4 +1,51 @@
|
|||||||
|
###
|
||||||
|
### Configuration for LSP-AI
|
||||||
|
###
|
||||||
|
### Link here:
|
||||||
|
### https://github.com/SilasMarvin/lsp-ai
|
||||||
|
###
|
||||||
|
|
||||||
|
[language-server.lsp-ai]
|
||||||
|
command = "lsp-ai"
|
||||||
|
|
||||||
|
[language-server.lsp-ai.config.memory]
|
||||||
|
file_store = { }
|
||||||
|
|
||||||
|
[language-server.lsp-ai.config.models.model1]
|
||||||
|
type = "open_ai"
|
||||||
|
model = "llama3B-Instruct"
|
||||||
|
chat_endpoint = "http://localhost:8888/chat/completions"
|
||||||
|
completions_endpoint = "http://localhost:8888/completion"
|
||||||
|
auth_token = ""
|
||||||
|
|
||||||
|
[[language-server.lsp-ai.config.chat]]
|
||||||
|
trigger = "!C"
|
||||||
|
action_display_name = "Chat"
|
||||||
|
model = "model1"
|
||||||
|
parameters = { max_context = 4096, max_tokens = 1024, system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately" }
|
||||||
|
|
||||||
|
# [[language-server.lsp-ai.config.actions]]
|
||||||
|
# trigger = "!P"
|
||||||
|
# action_display_name = "Complete"
|
||||||
|
# model = "model1"
|
||||||
|
# parameters = { max_context = 4096, max_tokens = 120, system = "You are a code assistant chatbot. The user will ask you for assistance coding and you will do you best to answer succinctly and accurately" }
|
||||||
|
# post_process = { extractor = "(?s)<answer>(.*?)</answer>" }
|
||||||
|
|
||||||
|
###
|
||||||
|
### Configuration for languages
|
||||||
|
###
|
||||||
|
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "go"
|
||||||
|
language-servers = ["gopls", "lsp-ai"]
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "markdown"
|
||||||
|
language-servers = ["marksman", "lsp-ai"]
|
||||||
|
|
||||||
# Change dart format to 120 lines
|
# Change dart format to 120 lines
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "dart"
|
name = "dart"
|
||||||
formatter = {command = "dart", args = ["format", "-l", "120"]}
|
formatter = {command = "dart", args = ["format", "-l", "120"]}
|
||||||
|
language-servers = ["dart", "lsp-ai"]
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
gnumake
|
gnumake
|
||||||
insomnia
|
insomnia
|
||||||
mariadb
|
mariadb
|
||||||
|
lsp-ai
|
||||||
|
|
||||||
# Go stuff
|
# Go stuff
|
||||||
go
|
go
|
||||||
@ -144,7 +145,10 @@
|
|||||||
prusa-slicer
|
prusa-slicer
|
||||||
gnome-disk-utility
|
gnome-disk-utility
|
||||||
kdePackages.filelight
|
kdePackages.filelight
|
||||||
|
hugo
|
||||||
|
go-swag
|
||||||
|
llama-cpp
|
||||||
|
|
||||||
#
|
#
|
||||||
# Style
|
# Style
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user