From d271d95e78ffbcd29dd83a23ed7ce4b6262db264 Mon Sep 17 00:00:00 2001 From: dadada Date: Thu, 8 Dec 2022 17:00:01 +0100 Subject: [PATCH] use clippy in rust-analyzer and use hx as EDITOR --- home/modules/helix/config/languages.toml | 3 +++ home/modules/session.nix | 2 +- home/modules/zsh.nix | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home/modules/helix/config/languages.toml b/home/modules/helix/config/languages.toml index e69de29..7b576c0 100644 --- a/home/modules/helix/config/languages.toml +++ b/home/modules/helix/config/languages.toml @@ -0,0 +1,3 @@ +[[language]] +name = "rust" +config = { rust-analyzer = { checkOnSave = { command = "clippy" } } } diff --git a/home/modules/session.nix b/home/modules/session.nix index 4da85a8..879400d 100644 --- a/home/modules/session.nix +++ b/home/modules/session.nix @@ -13,7 +13,7 @@ in type = types.attrs; default = { }; example = '' - EDITOR = "vim"; + EDITOR = "hx"; PAGER = "less"; ''; }; diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index 59453c2..1e73c0a 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -19,7 +19,7 @@ in enableVteIntegration = true; autocd = true; sessionVariables = { - EDITOR = "vim"; + EDITOR = "hx"; }; history = { extended = true;