home/programs/editors: configure helix
This commit is contained in:
parent
90cfd10876
commit
34106c074c
1 changed files with 26 additions and 4 deletions
|
@ -15,7 +15,25 @@ in {
|
|||
auto-format = true;
|
||||
auto-completion = true;
|
||||
completion-timeout = 5;
|
||||
color-modes = true;
|
||||
completion-trigger-len = 1;
|
||||
completion-replace = true;
|
||||
cursorline = true;
|
||||
cursor-shape = {
|
||||
insert = "bar";
|
||||
normal = "block";
|
||||
select = "underline";
|
||||
};
|
||||
indent-guides.render = true;
|
||||
lsp.display-inlay-hints = true;
|
||||
statusline.center = ["position-percentage"];
|
||||
true-color = true;
|
||||
whitespace.characters = {
|
||||
newline = "↴";
|
||||
tab = "⇥";
|
||||
};
|
||||
};
|
||||
|
||||
keys.normal = {
|
||||
space = {
|
||||
space = "file_picker";
|
||||
|
@ -30,12 +48,16 @@ in {
|
|||
language = [
|
||||
{
|
||||
name = "nix";
|
||||
formatter = {command = getExe pkgs.alejandra;};
|
||||
auto-format = true;
|
||||
}
|
||||
];
|
||||
|
||||
language-server = {
|
||||
nil = {
|
||||
command = lib.getExe pkgs.nil;
|
||||
config.nil.formatting.command = ["${lib.getExe pkgs.alejandra}" "-q"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
home.packages = [
|
||||
pkgs.nil
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue