Emacs kdl-ts-mode
This commit is contained in:
parent
b67be71d21
commit
b7c77998f3
3 changed files with 18 additions and 1 deletions
|
@ -561,6 +561,8 @@
|
||||||
(use-package sh-mode
|
(use-package sh-mode
|
||||||
:hook (sh-mode . bash-ts-mode))
|
:hook (sh-mode . bash-ts-mode))
|
||||||
|
|
||||||
|
(use-package kdl-ts-mode
|
||||||
|
:mode "\\.kdl\\'")
|
||||||
(use-package gptscript-mode
|
(use-package gptscript-mode
|
||||||
:mode "\\.gpt\\'")
|
:mode "\\.gpt\\'")
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,12 @@ let
|
||||||
inputs.emacs-overlay.overlays.emacs
|
inputs.emacs-overlay.overlays.emacs
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
all-grammars = pkgs'.tree-sitter.withPlugins builtins.attrValues;
|
pkgs-with-tree-sitter-kdl =
|
||||||
|
(builtins.getFlake "github:aciceri/nixpkgs/23a675ee8313427610cf129dd2b52a69bf6a2a26")
|
||||||
|
.legacyPackages.${pkgs.stdenv.system};
|
||||||
|
# TODO remove when merged: https://github.com/NixOS/nixpkgs/pull/371287/files
|
||||||
|
# all-grammars = pkgs'.tree-sitter.withPlugins builtins.attrValues;
|
||||||
|
all-grammars = pkgs-with-tree-sitter-kdl.tree-sitter.withPlugins builtins.attrValues;
|
||||||
treesitGrammars = pkgs'.runCommand "treesit-grammars" { } ''
|
treesitGrammars = pkgs'.runCommand "treesit-grammars" { } ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
for f in ${all-grammars}/*
|
for f in ${all-grammars}/*
|
||||||
|
|
|
@ -78,6 +78,16 @@ let
|
||||||
cp -r $src/data $LISPDIR
|
cp -r $src/data $LISPDIR
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
kdl-ts-mode = buildEmacsPackage {
|
||||||
|
name = "kdl-ts-mode";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "dataphract";
|
||||||
|
repo = "kdl-ts-mode";
|
||||||
|
rev = "3dbf116cd19261d8d70f456ae3385e1d20208452";
|
||||||
|
hash = "sha256-4bfKUzzLhBFg4TeGQD0dClumcO4caIBU8/uRncFVVFQ=";
|
||||||
|
};
|
||||||
|
deps = [ ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# *List* containing emacs packages from (M)ELPA
|
# *List* containing emacs packages from (M)ELPA
|
||||||
|
|
Loading…
Add table
Reference in a new issue