feat(helix): Added config for lsp-ai

This commit is contained in:
GaspardCulis 2024-11-14 10:26:02 +01:00
parent d9e94d99c1
commit ab3b928a0b
2 changed files with 31 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{pkgs, ...}: {
home.packages = [
pkgs.helix
home.packages = with pkgs; [
helix
lsp-ai
];
home.file = {

View file

@ -1,3 +1,31 @@
##############################
## Configuration for lsp-ai ##
##############################
[language-server.lsp-ai]
command = "lsp-ai"
[language-server.lsp-ai.config.memory]
file_store = { }
[language-server.lsp-ai.config.models.codestral]
type = "mistral_fim"
fim_endpoint = "https://api.mistral.ai/v1/fim/completions"
model = "codestral-latest"
auth_token_env_var_name = "CODESTRAL_API_KEY"
[language-server.lsp-ai.config.completion]
model = "codestral"
[language-server.lsp-ai.config.completion.parameters]
max_tokens = 64
max_context = 1024
#################################
## Configuration for languages ##
#################################
[[language]]
name = "rust"