diff --git a/nate-work/dotfiles/helix/config.toml b/nate-work/dotfiles/helix/config.toml index a831afd..498f7c1 100644 --- a/nate-work/dotfiles/helix/config.toml +++ b/nate-work/dotfiles/helix/config.toml @@ -48,6 +48,7 @@ C-n = "select_next_sibling" x = ":wbc!" s = ":w!" # save file o = ":config-open" +c = ["vsplit", ":open llm-chat.md"] [keys.normal.g] "/" = "goto_next_buffer" diff --git a/nate-work/dotfiles/helix/languages.toml b/nate-work/dotfiles/helix/languages.toml index 36f844b..3433514 100644 --- a/nate-work/dotfiles/helix/languages.toml +++ b/nate-work/dotfiles/helix/languages.toml @@ -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 [[language]] name = "dart" formatter = {command = "dart", args = ["format", "-l", "120"]} +language-servers = ["dart", "lsp-ai"] diff --git a/nate-work/modules/home-manager/home.nix b/nate-work/modules/home-manager/home.nix index e456173..7313a36 100644 --- a/nate-work/modules/home-manager/home.nix +++ b/nate-work/modules/home-manager/home.nix @@ -73,6 +73,7 @@ gnumake insomnia mariadb + lsp-ai # Go stuff go @@ -144,7 +145,10 @@ prusa-slicer gnome-disk-utility kdePackages.filelight - + hugo + go-swag + llama-cpp + # # Style #