Add helix to home-manager
This commit is contained in:
parent
ce1a70168a
commit
943522935b
2 changed files with 42 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
|||
[
|
||||
./programs
|
||||
./distrobox.nix
|
||||
./helix.nix
|
||||
./git.nix
|
||||
./gpg.nix
|
||||
./packages.nix
|
||||
|
|
37
users/pedro/home-configuration/helix.nix
Normal file
37
users/pedro/home-configuration/helix.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{pkgs, ...}: {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
languages = {
|
||||
language-server = {
|
||||
pyright = {
|
||||
command = "${pkgs.pyright}/bin/pyright-langserver";
|
||||
args = ["--stdio"];
|
||||
config = {};
|
||||
};
|
||||
|
||||
nil = {command = "${pkgs.nil}/bin/nil";};
|
||||
};
|
||||
|
||||
language = [
|
||||
{
|
||||
name = "nix";
|
||||
language-servers = ["nil"];
|
||||
auto-format = true;
|
||||
formatter.command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt";
|
||||
}
|
||||
|
||||
{
|
||||
name = "python";
|
||||
language-servers = ["pyright"];
|
||||
auto-format = true;
|
||||
formatter = {
|
||||
command = "${pkgs.black}/bin/black";
|
||||
args = ["--quiet" "-"];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
settings = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue