diff --git a/modules/home/terminal/development.nix b/modules/home/terminal/development.nix index 0b5cda0..2b5c224 100644 --- a/modules/home/terminal/development.nix +++ b/modules/home/terminal/development.nix @@ -3,7 +3,14 @@ lib.mkEnableOption "enables cli editor"; config = lib.mkIf config.mods.terminal.development.enable { - # home.packages = with pkgs; []; + home.packages = with pkgs; [ + # Nix + nil + + # Rust + rust-analyzer + lldb_18 + ]; programs.direnv = { enable = true; @@ -18,13 +25,13 @@ settings = { keys.normal = { - "esc" = ["collapse_selection" "keep_primary_selection"]; + "esc" = [ "collapse_selection" "keep_primary_selection" ]; }; editor = { line-number = "relative"; completion-replace = true; bufferline = "always"; - rulers = [80]; + rulers = [ 80 ]; soft-wrap.enable = true; indent-guides.render = true; cursor-shape = { @@ -34,6 +41,19 @@ }; }; }; + + languages.language = [ + { + name = "nix"; + auto-format = true; + formatter.command = "${pkgs.nixfmt}/bin/nixfmt"; + } + { + name = "rust"; + auto-format = true; + formatter.command = "rustfmt"; + } + ]; }; }; }