Compare commits
4 commits
d9e94d99c1
...
cab698dad5
Author | SHA1 | Date | |
---|---|---|---|
|
cab698dad5 | ||
|
d32ef92f78 | ||
|
8e650f11c8 | ||
|
ab3b928a0b |
3 changed files with 41 additions and 5 deletions
|
@ -51,7 +51,6 @@
|
||||||
brightnessctl
|
brightnessctl
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
# Apps launchable from bindings
|
# Apps launchable from bindings
|
||||||
firefox
|
|
||||||
kitty
|
kitty
|
||||||
yazi
|
yazi
|
||||||
# Yazi requirements
|
# Yazi requirements
|
||||||
|
@ -62,6 +61,8 @@
|
||||||
vlc
|
vlc
|
||||||
qbittorrent
|
qbittorrent
|
||||||
webcord
|
webcord
|
||||||
|
# Firefox PWA
|
||||||
|
firefoxpwa
|
||||||
];
|
];
|
||||||
|
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
|
@ -80,6 +81,11 @@
|
||||||
};
|
};
|
||||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
nativeMessagingHosts = [pkgs.firefoxpwa];
|
||||||
|
};
|
||||||
|
|
||||||
# bar is required
|
# bar is required
|
||||||
imports = [
|
imports = [
|
||||||
../../bar
|
../../bar
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
home.packages = [
|
home.packages = with pkgs; [
|
||||||
pkgs.helix
|
helix
|
||||||
|
lsp-ai
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
|
@ -1,5 +1,34 @@
|
||||||
|
##############################
|
||||||
|
## 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://codestral.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"
|
||||||
|
language-servers = [ "rust-analyzer", "lsp-ai" ]
|
||||||
|
|
||||||
[language.debugger]
|
[language.debugger]
|
||||||
command = "codelldb"
|
command = "codelldb"
|
||||||
|
@ -20,7 +49,7 @@ runInTerminal = false
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "python"
|
name = "python"
|
||||||
language-servers = [ "pyright", "ruff" ]
|
language-servers = [ "pyright", "ruff", "lsp-ai" ]
|
||||||
|
|
||||||
[language-server.pyright.config.python.analysis]
|
[language-server.pyright.config.python.analysis]
|
||||||
typeCheckingMode = "basic"
|
typeCheckingMode = "basic"
|
||||||
|
@ -73,7 +102,7 @@ formatter = { command = 'prettier', args = ["--parser", "css"] }
|
||||||
name = "scss"
|
name = "scss"
|
||||||
formatter = { command = "prettier", args = ["--stdin-filepath", "dummy.scss"] }
|
formatter = { command = "prettier", args = ["--stdin-filepath", "dummy.scss"] }
|
||||||
indent = { tab-width = 4, unit = "\t" }
|
indent = { tab-width = 4, unit = "\t" }
|
||||||
language-servers = ["vscode-css-language-server"]
|
language-servers = ["vscode-css-language-server", "lsp-ai"]
|
||||||
auto-format = true
|
auto-format = true
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
|
|
Loading…
Reference in a new issue