feat: lsp changes, starship-jj

This commit is contained in:
Kat Inskip 2025-12-10 07:05:50 -08:00
parent 414a45327b
commit 032025969f
4 changed files with 49 additions and 1 deletions

View file

@ -13,6 +13,15 @@
programs = { programs = {
jujutsu = { jujutsu = {
enable = true; enable = true;
settings = {
user = with tree.home.user.data; {
name = userName;
email = userEmail;
};
};
};
jjui = {
enable = true;
}; };
delta = { delta = {
enable = true; enable = true;

View file

@ -1,4 +1,9 @@
_: { { pkgs, lib, ... }: let
inherit (lib.meta) getExe;
in {
home.packages = [
pkgs.starship-jj
];
programs.starship = { programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
@ -6,6 +11,14 @@ _: {
time = { time = {
disabled = false; disabled = false;
}; };
custom.jj = {
command = "prompt";
format = "$output";
ignore_timeout = true;
shell = ["${getExe pkgs.starship-jj}" "--ignore-working-copy" "starship"];
use_stdin = false;
when = true;
};
}; };
}; };
} }

View file

@ -70,6 +70,7 @@ in {
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
bash bash
json json
elixir
make make
markdown markdown
regex regex

25
packages/starship-jj.nix Normal file
View file

@ -0,0 +1,25 @@
{
lib,
fetchCrate,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "starship-jj";
version = "0.7.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-oisz3V3UDHvmvbA7+t5j7waN9NykMUWGOpEB5EkmYew=";
};
cargoHash = "sha256-NNeovW27YSK/fO2DjAsJqBvebd43usCw7ni47cgTth8=";
meta = with lib; {
description = "Starship plugin for jj";
homepage = "https://gitlab.com/lanastara_foss/starship-jj";
maintainers = with maintainers; [
nemith
];
license = licenses.mit;
};
}