helix inline diags

This commit is contained in:
Schrottkatze 2024-06-12 13:23:20 +02:00
parent 81246671df
commit 8c81b94e47
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
2 changed files with 23 additions and 6 deletions

View file

@ -5,6 +5,13 @@
nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-stable.url = "nixpkgs/nixos-23.11"; nixpkgs-stable.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable-small.url = "nixpkgs/nixos-unstable-small"; nixpkgs-unstable-small.url = "nixpkgs/nixos-unstable-small";
helix-inline-diags = {
url = "github:pascalkuthe/helix/inline-diagnostics";
inputs = {
crane.follows = "crane";
nixpkgs.follows = "nixpkgs";
};
};
lix = { lix = {
url = "git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1"; url = "git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1";
flake = false; flake = false;
@ -40,6 +47,7 @@
nixpkgs, nixpkgs,
nixpkgs-stable, nixpkgs-stable,
nixpkgs-unstable-small, nixpkgs-unstable-small,
helix-inline-diags,
lix-module, lix-module,
home-manager, home-manager,
nixos-hardware, nixos-hardware,
@ -93,7 +101,7 @@
nixosConfigurations = { nixosConfigurations = {
monosodium-glutamate-g = nixpkgs.lib.nixosSystem { monosodium-glutamate-g = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs pkgs-unstable-small pkgs-stable rs-programs lix-module; inherit inputs pkgs-unstable-small pkgs-stable rs-programs lix-module helix-inline-diags;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -118,7 +126,7 @@
}; };
catbook-j = nixpkgs.lib.nixosSystem { catbook-j = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs pkgs-unstable-small pkgs-stable rs-programs lix-module; inherit inputs pkgs-unstable-small pkgs-stable rs-programs lix-module helix-inline-diags;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
@ -143,7 +151,7 @@
}; };
potatobook-g = nixpkgs.lib.nixosSystem { potatobook-g = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit inputs pkgs-unstable-small rs-programs lix-module; inherit inputs pkgs-unstable-small rs-programs lix-module helix-inline-diags;
}; };
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [

View file

@ -1,4 +1,8 @@
{config, ...}: { {
config,
helix-inline-diags,
...
}: {
home-manager.users.jade = {pkgs, ...}: { home-manager.users.jade = {pkgs, ...}: {
home = { home = {
sessionVariables.EDITOR = "hx"; sessionVariables.EDITOR = "hx";
@ -12,7 +16,7 @@
}; };
programs.helix = { programs.helix = {
enable = true; enable = true;
package = pkgs.helix; package = helix-inline-diags.outputs.packages."x86_64-linux".default;
settings = { settings = {
theme = "gruvbox"; theme = "gruvbox";
editor = { editor = {
@ -22,6 +26,11 @@
cursorline = true; cursorline = true;
auto-save = true; auto-save = true;
auto-format = true; auto-format = true;
end-of-line-diagnostics = "hint";
inline-diagnostics = {
cursor-line = "hint";
other-lines = "error";
};
lsp = { lsp = {
display-messages = true; display-messages = true;
display-inlay-hints = true; display-inlay-hints = true;
@ -48,7 +57,7 @@
"file-encoding" "file-encoding"
"file-type" "file-type"
]; ];
idle-timeout = 200; idle-timeout = 50;
indent-guides = { indent-guides = {
render = true; render = true;
character = ""; character = "";