feat: Configure helix, install software

This commit is contained in:
Jan-Bulthuis 2026-05-19 12:11:16 +02:00
parent 00679a2c04
commit eb18897355

View File

@ -50,6 +50,10 @@ in
vlc vlc
authenticator authenticator
hotspot hotspot
btop
winboat
hieroglyphic
shortwave
podman podman
podman-compose podman-compose
@ -58,6 +62,14 @@ in
gnome-logs gnome-logs
]; ];
programs.zathura = {
enable = true;
options = {
synctex = true;
synctex-editor-command = "${pkgs.texlab}/bin/texlab inverse-search -i %{input} -l %{line}";
};
};
programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
@ -68,6 +80,34 @@ in
# fallback = "default"; # fallback = "default";
# }; # };
# }; # };
settings =
let
move_line_up = [
"extend_to_line_bounds"
"delete_selection"
"move_line_up"
"paste_before"
];
move_line_down = [
"extend_to_line_bounds"
"delete_selection"
"paste_after"
];
in
{
keys.normal = {
"A-up" = move_line_up;
"A-down" = move_line_down;
"A-k" = move_line_up;
"A-j" = move_line_down;
};
keys.select = {
"A-up" = move_line_up;
"A-down" = move_line_down;
"A-k" = move_line_up;
"A-j" = move_line_down;
};
};
extraPackages = with pkgs; [ extraPackages = with pkgs; [
bash-language-server # Bash bash-language-server # Bash
fish-lsp # Fish fish-lsp # Fish
@ -97,7 +137,8 @@ in
ruff # Python ruff # Python
basedpyright # Python basedpyright # Python
helix-gpt # Copilot #helix-gpt # Copilot
ltex-ls-plus # Spellchecking
# texlab # Latex, Bibtex # texlab # Latex, Bibtex
# bibtex-tidy # Bibtex # bibtex-tidy # Bibtex
@ -116,6 +157,22 @@ in
]; ];
languages = { languages = {
language-server = { language-server = {
ltex = {
command = "ltex-ls-plus";
config.ltex = { };
};
texlab = {
command = "texlab";
config.texlab = {
build.onSave = true;
forwardSearch.executable = "${config.programs.zathura.package}/bin/zathura";
forwardSearch.args = [
"--synctex-forward"
"%l:1:%f"
"%p"
];
};
};
basedpyright = { basedpyright = {
command = "basedpyright-langserver"; command = "basedpyright-langserver";
args = [ "--stdio" ]; args = [ "--stdio" ];
@ -133,6 +190,16 @@ in
}; };
}; };
language = [ language = [
{
name = "latex";
# language-servers = [
# { name = "texlab"; }
# { name = "ltex"; }
# ];
soft-wrap = {
enable = true;
};
}
{ {
name = "python"; name = "python";
language-servers = [ language-servers = [