helix: removed aichat part and general cleanup

This commit is contained in:
Giulio De Pasquale 2024-05-27 13:39:25 +01:00
parent 86689e4bc6
commit 8a5ab606e6

View File

@ -1,13 +1,8 @@
{ pkgs, lib, stdenv, ... }:
{ pkgs, ... }:
let
actualPkgs = pkgs.unstablePkgs;
pythonPkgs = with actualPkgs.python3Packages; [
python-lsp-server
python-lsp-ruff
pylsp-mypy
];
nodePkgs = with actualPkgs.nodePackages; [
vscode-langservers-extracted
typescript
@ -17,37 +12,6 @@ let
bash-language-server
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
{
home = {
@ -66,12 +30,11 @@ in
shfmt
gopls
aichat
# ] ++ pythonPkgs ++ nodePkgs;
] ++ nodePkgs;
sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
AICHAT_CONFIG_DIR = aichatConfigDir;
};
file = {
@ -97,13 +60,13 @@ in
[editor.statusline]
left = ["mode", "spinner"]
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" }
'';
};
};
}