feat: extras.lang.markdown

Including packaging markdown-toc!!!!!
This commit is contained in:
punkfairie 2025-03-09 20:48:36 -07:00
parent 7934bca6db
commit 55dc68c2ef
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
4 changed files with 1936 additions and 4 deletions

View file

@ -102,15 +102,22 @@
# this includes LSPs
lspsAndRuntimeDeps = with pkgs; {
general = [
(callPackage ./packages/markdown-toc {})
alejandra
biome
curl
docker-compose-language-service
dockerfile-language-server-nodejs
fd
gofumpt
gopls
gotools
hadolint
helm-ls
lazygit
lua-language-server
markdownlint-cli2
marksman
nil
nodePackages.prettier
ripgrep
@ -118,10 +125,6 @@
stylelint
stylua
universal-ctags
gopls
gotools
gofumpt
helm-ls
vscode-langservers-extracted
];
};
@ -244,6 +247,10 @@
# JSON
SchemaStore-nvim
# Markdown
markdown-preview-nvim
render-markdown-nvim
# Custom
rose-pine
diffview-nvim

View file

@ -58,6 +58,7 @@ require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start',
{ import = 'lazyvim.plugins.extras.lang.go' },
{ import = 'lazyvim.plugins.extras.lang.helm' },
{ import = 'lazyvim.plugins.extras.lang.json' },
{ import = 'lazyvim.plugins.extras.lang.markdown' },
{ import = 'lazyvim.plugins.extras.lang.nix' },
-- These need to be after extras to prevent extras from overwriting them.

View file

@ -0,0 +1,34 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
buildNpmPackage rec {
pname = "markdown-toc";
version = "1.2.0";
src = fetchFromGitHub {
owner = "jonschlinkert";
repo = pname;
rev = version;
hash = "sha256-CgyAxXcLrdk609qoXjyUgpA+NIlWrkBsE7lf5YnPagQ=";
};
# Add the package-lock.json.
postPatch =
# sh
''
ln -s ${./package-lock.json} package-lock.json
'';
npmDepsHash = "sha256-ZuR3zPaOM4CkuzBin9F3lj1qeD1w42g6NwSMQFambI4=";
npmPackFlags = ["--ignore-scripts"];
dontNpmBuild = true;
meta = {
description = "Generate a markdown TOC (table of contents) with Remarkable.";
homepage = "https://github.com/jonschlinkert/markdown-toc";
license = lib.licenses.mit;
};
}

1890
packages/markdown-toc/package-lock.json generated Normal file

File diff suppressed because it is too large Load diff