Skip to content

Commit

Permalink
Introduce micro-kdl plugin
Browse files Browse the repository at this point in the history
I have created this to maintain zellij config

https://github.com/kachick/micro-kdl
  • Loading branch information
kachick committed Aug 15, 2024
1 parent b05e5a4 commit e7f8e18
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-manager/editor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
xdg.configFile."micro/colorschemes/.keep".text = "";

xdg.configFile."micro/plug/fzfinder".source = homemade-pkgs.micro-fzfinder;
xdg.configFile."micro/plug/kdl".source = homemade-pkgs.micro-kdl;
xdg.configFile."micro/plug/nordcolors".source = homemade-pkgs.micro-nordcolors;

# Default keybinfings are https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md
Expand Down
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
get-rclone-config-password = import ./get-rclone-config-password { inherit pkgs edge-pkgs; };

micro-fzfinder = pkgs.callPackage ./micro-fzfinder { };
micro-kdl = pkgs.callPackage ./micro-kdl { };
micro-nordcolors = pkgs.callPackage ./micro-nordcolors { };

kdl-vim = pkgs.callPackage ./kdl.vim { };
Expand Down
34 changes: 34 additions & 0 deletions pkgs/micro-kdl/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
stdenv,
fetchFromGitHub,
}:

stdenv.mkDerivation {
pname = "micro-kdl";
version = "unstable-2024-08-15";

src = fetchFromGitHub {
owner = "kachick";
repo = "micro-kdl";
rev = "fa014198284ede791afc36ccec5d24c0c7201256";
hash = "sha256-wS1Ldrhn8dKTXdLM23glDdFrKxAex4aZJSxgYaHN/uA=";
};

buildPhase = ''
mkdir $out
'';

installPhase = ''
cp repo.json $out
cp kdl.* $out
'';

meta = with lib; {
description = "Micro editor syntax highlighting for KDL";
homepage = "https://github.com/kachick/micro-kdl";
license = licenses.mit;
mainProgram = "micro-kdl";
platforms = platforms.all;
};
}

0 comments on commit e7f8e18

Please sign in to comment.