helix: removed aichat part and general cleanup
This commit is contained in:
parent
86689e4bc6
commit
8a5ab606e6
@ -1,13 +1,8 @@
|
|||||||
{ pkgs, lib, stdenv, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
actualPkgs = pkgs.unstablePkgs;
|
actualPkgs = pkgs.unstablePkgs;
|
||||||
|
|
||||||
pythonPkgs = with actualPkgs.python3Packages; [
|
|
||||||
python-lsp-server
|
|
||||||
python-lsp-ruff
|
|
||||||
pylsp-mypy
|
|
||||||
];
|
|
||||||
nodePkgs = with actualPkgs.nodePackages; [
|
nodePkgs = with actualPkgs.nodePackages; [
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
typescript
|
typescript
|
||||||
@ -17,37 +12,6 @@ let
|
|||||||
bash-language-server
|
bash-language-server
|
||||||
pyright
|
pyright
|
||||||
];
|
];
|
||||||
aichatConfigDir = "$HOME/.config/aichat";
|
|
||||||
aichatConfig = ''
|
|
||||||
model: ollama
|
|
||||||
clients:
|
|
||||||
- type: ollama
|
|
||||||
api_base: https://ollama.giugl.io
|
|
||||||
api_key: null
|
|
||||||
models:
|
|
||||||
- name: pino-coder-fast
|
|
||||||
max_input_tokens: null
|
|
||||||
- name: pino-coder
|
|
||||||
max_input_tokens: null
|
|
||||||
- name: pino-fast
|
|
||||||
max_input_tokens: null
|
|
||||||
- name: pino
|
|
||||||
max_input_tokens: null
|
|
||||||
- name: code-commenter
|
|
||||||
max_input_tokens: null
|
|
||||||
- name: git-commit-message
|
|
||||||
max_input_tokens: null
|
|
||||||
|
|
||||||
- type: claude
|
|
||||||
api_key: null
|
|
||||||
|
|
||||||
- type: openai
|
|
||||||
api_key: null
|
|
||||||
api_base: https://api.openai.com/v1
|
|
||||||
|
|
||||||
- type: gemini
|
|
||||||
api_key: null
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
@ -66,12 +30,11 @@ in
|
|||||||
shfmt
|
shfmt
|
||||||
gopls
|
gopls
|
||||||
aichat
|
aichat
|
||||||
# ] ++ pythonPkgs ++ nodePkgs;
|
|
||||||
] ++ nodePkgs;
|
] ++ nodePkgs;
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "hx";
|
EDITOR = "hx";
|
||||||
VISUAL = "hx";
|
VISUAL = "hx";
|
||||||
AICHAT_CONFIG_DIR = aichatConfigDir;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
file = {
|
file = {
|
||||||
@ -97,13 +60,13 @@ in
|
|||||||
[editor.statusline]
|
[editor.statusline]
|
||||||
left = ["mode", "spinner"]
|
left = ["mode", "spinner"]
|
||||||
center = ["file-name"]
|
center = ["file-name"]
|
||||||
|
|
||||||
[keys.select.l]
|
|
||||||
c = ":pipe ${pkgs.unstablePkgs.aichat}/bin/aichat -m ollama:pino-coder-fast -c -r comment"
|
|
||||||
C = ":pipe ${pkgs.unstablePkgs.aichat}/bin/aichat -m ollama:pino-coder -c -r comment"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
".config/aichat/config.yaml".text = aichatConfig;
|
".config/helix/languages.toml".text = ''
|
||||||
|
[[language]]
|
||||||
|
name = "nix"
|
||||||
|
formatter = { command = "nixpkgs-fmt" }
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user