2023-11-26 21:26:49 +01:00
|
|
|
{config, ...}: {
|
|
|
|
home-manager.users.jade = {pkgs, ...}: {
|
2023-11-14 12:22:19 +01:00
|
|
|
home = {
|
|
|
|
sessionVariables.EDITOR = "hx";
|
2023-11-26 21:26:49 +01:00
|
|
|
packages = [
|
|
|
|
pkgs.nil
|
2023-11-14 12:22:19 +01:00
|
|
|
pkgs.haskell-language-server
|
2023-11-26 21:26:49 +01:00
|
|
|
pkgs.nodePackages_latest.vscode-html-languageserver-bin
|
|
|
|
pkgs.nodePackages_latest.vscode-json-languageserver-bin
|
2023-11-14 12:22:19 +01:00
|
|
|
pkgs.nodePackages_latest.vscode-css-languageserver-bin
|
|
|
|
pkgs.nodePackages_latest.bash-language-server
|
|
|
|
];
|
|
|
|
};
|
|
|
|
programs.helix = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
theme = "gruvbox";
|
|
|
|
editor = {
|
|
|
|
line-number = "relative";
|
|
|
|
lsp.display-messages = true;
|
2023-11-22 11:47:26 +01:00
|
|
|
indent-guides = {
|
|
|
|
render = true;
|
|
|
|
character = "│";
|
|
|
|
};
|
|
|
|
whitespace = {
|
|
|
|
render = {
|
|
|
|
space = "all";
|
|
|
|
tab = "all";
|
|
|
|
newline = "none";
|
|
|
|
};
|
|
|
|
characters = {
|
|
|
|
space = "·";
|
|
|
|
nbsp = "⍽";
|
|
|
|
tab = "→";
|
|
|
|
};
|
|
|
|
};
|
2023-11-14 12:22:19 +01:00
|
|
|
};
|
|
|
|
keys.normal = {
|
|
|
|
space."=" = ":fmt";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
languages = {
|
2023-11-20 01:29:52 +01:00
|
|
|
language-server."nu-builtin-lsp" = {
|
|
|
|
command = "${config.users.defaultUserShell}/bin/nu";
|
2023-11-26 21:26:49 +01:00
|
|
|
args = ["--lsp"];
|
2023-11-20 01:29:52 +01:00
|
|
|
};
|
|
|
|
language-server."rust-analyzer" = {
|
|
|
|
config = {
|
|
|
|
check.command = "clippy";
|
2023-11-14 12:22:19 +01:00
|
|
|
};
|
|
|
|
};
|
2023-11-20 01:29:52 +01:00
|
|
|
# "php" = {
|
|
|
|
# name = "php";
|
|
|
|
# file-types = [ "php" ];
|
|
|
|
# language-server = {
|
|
|
|
# command = "psalm";
|
|
|
|
# args = ["--language-server"];
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
language = [
|
|
|
|
{
|
|
|
|
name = "nu";
|
2023-11-26 21:26:49 +01:00
|
|
|
language-servers = ["nu-builtin-lsp"];
|
2023-11-20 01:29:52 +01:00
|
|
|
}
|
2023-11-26 21:34:14 +01:00
|
|
|
{
|
|
|
|
name = "nix";
|
|
|
|
formatter = {
|
|
|
|
command = "${pkgs.alejandra}/bin/alejandra";
|
|
|
|
args = ["--quiet"];
|
|
|
|
};
|
|
|
|
auto-format = true;
|
|
|
|
}
|
2023-11-20 01:29:52 +01:00
|
|
|
];
|
2023-11-14 12:22:19 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|