diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-28 11:40:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-28 11:40:01 +0200 |
| commit | 0215be6d4039c4dc5227ae0c13deb8c288a0e9b7 (patch) | |
| tree | ba8cca968a024094ad99b084433db9bc538c0814 | |
| parent | beafd1c765a06caead453c5666b2715796adeb0f (diff) | |
enable gpt
| -rw-r--r-- | dotfiles/helix/config.toml | 2 | ||||
| -rw-r--r-- | dotfiles/helix/languages.toml | 15 | ||||
| -rw-r--r-- | dotfiles/zsh/zshrc_d/editor.source.zsh | 6 |
3 files changed, 13 insertions, 10 deletions
diff --git a/dotfiles/helix/config.toml b/dotfiles/helix/config.toml index ec9f468..6e885d4 100644 --- a/dotfiles/helix/config.toml +++ b/dotfiles/helix/config.toml @@ -1,4 +1,4 @@ -theme = "ayu_dark" +theme = "monokai_pro_octagon" [editor] bufferline = "always" diff --git a/dotfiles/helix/languages.toml b/dotfiles/helix/languages.toml index 9a59768..eab2c12 100644 --- a/dotfiles/helix/languages.toml +++ b/dotfiles/helix/languages.toml @@ -3,10 +3,11 @@ name = "go" auto-format= true diagnostic-severity = "hint" formatter = { command = "goimports" } -language-servers = [ "gopls", "golangci-lint-lsp" ] +language-servers = [ "gopls", "golangci-lint-lsp", "gpt" ] [language-server.gpt] command = "helix-gpt" +args = [ "--logFile", "helix-gpt.log"] [language-server.gopls] command = "gopls" @@ -31,7 +32,7 @@ scope = "source.c" injection-regex = "c" file-types = ["c", "h"] # TODO: ["h"] comment-token = "//" -language-servers = [ "clangd" ] +language-servers = [ "clangd", "gpt" ] indent = { tab-width = 2, unit = " " } [[grammar]] @@ -49,7 +50,7 @@ scope = "source.perl" file-types = ["pl", "pm", "t", "psgi", "raku", "rakumod", "rakutest", "rakudoc", "nqp", "p6", "pl6", "pm6", { glob = "Rexfile" }] shebangs = ["perl"] comment-token = "#" -language-servers = [ "perlnavigator" ] +language-servers = [ "perlnavigator", "gpt" ] indent = { tab-width = 2, unit = " " } [[grammar]] @@ -82,7 +83,7 @@ file-types = [ ] shebangs = ["ruby"] comment-token = "#" -language-servers = [ "ruby-lsp", "solargraph", "rubocop" ] +language-servers = [ "ruby-lsp", "solargraph", "rubocop", "gpt" ] indent = { tab-width = 2, unit = " " } [[grammar]] @@ -116,7 +117,7 @@ file-types = [ ] shebangs = ["sh", "bash", "dash", "zsh"] comment-token = "#" -language-servers = [ "bash-language-server" ] +language-servers = [ "bash-language-server", "gpt" ] indent = { tab-width = 2, unit = " " } [[grammar]] @@ -135,7 +136,7 @@ scope = "source.md" injection-regex = "md|markdown" file-types = ["md", "markdown", "mkd", "mdwn", "mdown", "markdn", "mdtxt", "mdtext", "workbook", "gmi", "tpl" ] roots = [".marksman.toml"] -language-servers = [ "marksman", "markdown-oxide", "vale-ls"] +language-servers = [ "marksman", "markdown-oxide", "vale-ls", "gpt"] indent = { tab-width = 2, unit = " " } [[grammar]] @@ -168,7 +169,7 @@ scope = "source.java" injection-regex = "java" file-types = ["java", "jav", "pde"] roots = ["pom.xml", "build.gradle", "build.gradle.kts"] -language-servers = [ "jdtls" ] +language-servers = [ "jdtls", "gpt" ] indent = { tab-width = 2, unit = " " } [[grammar]] diff --git a/dotfiles/zsh/zshrc_d/editor.source.zsh b/dotfiles/zsh/zshrc_d/editor.source.zsh index ee9fef7..818ee0d 100644 --- a/dotfiles/zsh/zshrc_d/editor.source.zsh +++ b/dotfiles/zsh/zshrc_d/editor.source.zsh @@ -4,8 +4,10 @@ export GIT_EDITOR=$EDITOR export HELIX_CONFIG_DIR=$HOME/.config/helix # For https://github.com/leona/helix-gpt/blob/master/src/config.ts -export OPENAI_MODEL=gpt-4o -export OPENAI_MAX_TOKENS=14000 +# export OPENAI_MODEL=gpt-4o +# export OPENAI_MAX_TOKENS=14000 +export COPILOT_MODEL=gpt-4o +export HANDLER=copilot editor::helix::theme::get_random () { for dir in $(hx --health \ |
