feat(helix): Added config for lsp-ai
This commit is contained in:
parent
d9e94d99c1
commit
ab3b928a0b
2 changed files with 31 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = [
|
home.packages = with pkgs; [
|
||||||
pkgs.helix
|
helix
|
||||||
|
lsp-ai
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.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]]
|
[[language]]
|
||||||
name = "rust"
|
name = "rust"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue