init
This commit is contained in:
commit
b6cdc78668
210 changed files with 9929 additions and 0 deletions
63
hand7s/programs/helix.nix
Normal file
63
hand7s/programs/helix.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs = {
|
||||
helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraPackages = with pkgs; [
|
||||
nixd
|
||||
nixfmt-rfc-style
|
||||
];
|
||||
|
||||
settings = {
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
cursorline = true;
|
||||
lsp = {
|
||||
display-messages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
languages = {
|
||||
language-servers = {
|
||||
nixd = {
|
||||
command = "${pkgs.nixd}/bin/nixd";
|
||||
args = [
|
||||
"--inlay-hints=true"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
language = [
|
||||
{
|
||||
name = "nix";
|
||||
comment-token = "#";
|
||||
injection-regex = "nix";
|
||||
indent = {
|
||||
tab-width = 4;
|
||||
unit = " ";
|
||||
};
|
||||
|
||||
formatter = {
|
||||
command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt-rfc-style";
|
||||
args = [
|
||||
"--indent=4"
|
||||
];
|
||||
};
|
||||
|
||||
file-types = [
|
||||
"nix"
|
||||
];
|
||||
|
||||
language-servers = [
|
||||
"nixd"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue