moar helix

This commit is contained in:
xqtc 2025-06-01 15:59:37 +02:00
parent ecdc71c262
commit 80b2c547ec
Signed by: xqtc
GPG key ID: 2C064D095926D9D1
2 changed files with 29 additions and 3 deletions

View file

@ -4,7 +4,6 @@
...
}:
{
programs.helix = {
enable = true;
package = pkgs.evil-helix;
@ -16,12 +15,16 @@
};
languages = {
language-server = {
typos = {
command = lib.getExe pkgs.typos-lsp;
};
terraform-ls = {
command = "${lib.getExe pkgs.terraform-ls}";
config = {
terraform.path = "${lib.getExe pkgs.opentofu}";
};
};
nixd = {
command = "${lib.getExe pkgs.nixd}";
};
@ -29,8 +32,20 @@
config.check.command = "clippy";
command = "${lib.getExe pkgs.rust-analyzer}";
};
ansible-language-server = {
command = "${lib.getExe pkgs.ansible-language-server}";
};
};
language = [
{
name = "yaml";
auto-format = true;
formatter.command = "${lib.getExe pkgs.yamlfmt}";
language-servers = [
"ansible-language-server"
# "typos"
];
}
{
name = "nix";
auto-format = true;
@ -40,8 +55,17 @@
];
};
settings = {
keys = {
normal = {
"C-h" = "jump_view_left";
"C-l" = "jump_view_right";
"C-j" = "jump_view_down";
"C-k" = "jump_view_up";
};
};
theme = "ayu_evolve_transparent";
editor = {
rulers = [ 80 ];
gutters = [
"diff"
"diagnostics"
@ -69,6 +93,7 @@
select = "SEL";
};
};
bufferline = "multiple";
auto-save = true;
color-modes = true;
cursorline = true;
@ -79,14 +104,15 @@
};
inline-diagnostics = {
cursor-line = "hint";
other-lines = "error";
other-lines = "warning";
};
indent-guides = {
render = true;
render = false;
rainbow = "dim";
character = "";
};
whitespace = {
render = "all";
characters = {
space = "·";
nbsp = "";

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB