Add JSON config for Helix
Some checks are pending
Flake check / check (push) Waiting to run
Update `flake.lock` / update_lockfile (push) Waiting to run

This commit is contained in:
Pedro Rey Anca 2025-10-30 19:11:35 +01:00
parent 902b296299
commit 715f3d6f93
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A

View file

@ -1,4 +1,5 @@
{pkgs, ...}: { { pkgs, ... }:
{
programs.helix = { programs.helix = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
@ -6,32 +7,49 @@
language-server = { language-server = {
pyright = { pyright = {
command = "${pkgs.pyright}/bin/pyright-langserver"; command = "${pkgs.pyright}/bin/pyright-langserver";
args = ["--stdio"]; args = [ "--stdio" ];
config = {}; config = { };
}; };
nil = {command = "${pkgs.nil}/bin/nil";}; nil = {
command = "${pkgs.nil}/bin/nil";
};
vscode-json-language-server.command = "${pkgs.nodePackages.vscode-json-languageserver}/bin/vscode-json-languageserver";
}; };
language = [ language = [
{ {
name = "nix"; name = "nix";
language-servers = ["nil"]; language-servers = [ "nil" ];
auto-format = true; auto-format = true;
formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
} }
{ {
name = "python"; name = "python";
language-servers = ["pyright"]; language-servers = [ "pyright" ];
auto-format = true; auto-format = true;
formatter = { formatter = {
command = "${pkgs.black}/bin/black"; command = "${pkgs.black}/bin/black";
args = ["--quiet" "-"]; args = [
"--quiet"
"-"
];
};
}
{
name = "json";
formatter = {
command = "${pkgs.nodePackages.prettier}/bin/prettier";
args = [
"--parser"
"json"
];
}; };
} }
]; ];
}; };
settings = {}; settings = { };
}; };
} }