feat: extras.lang.markdown
Including packaging markdown-toc!!!!!
This commit is contained in:
parent
7934bca6db
commit
55dc68c2ef
4 changed files with 1936 additions and 4 deletions
15
flake.nix
15
flake.nix
|
@ -102,15 +102,22 @@
|
||||||
# this includes LSPs
|
# this includes LSPs
|
||||||
lspsAndRuntimeDeps = with pkgs; {
|
lspsAndRuntimeDeps = with pkgs; {
|
||||||
general = [
|
general = [
|
||||||
|
(callPackage ./packages/markdown-toc {})
|
||||||
alejandra
|
alejandra
|
||||||
biome
|
biome
|
||||||
curl
|
curl
|
||||||
docker-compose-language-service
|
docker-compose-language-service
|
||||||
dockerfile-language-server-nodejs
|
dockerfile-language-server-nodejs
|
||||||
fd
|
fd
|
||||||
|
gofumpt
|
||||||
|
gopls
|
||||||
|
gotools
|
||||||
hadolint
|
hadolint
|
||||||
|
helm-ls
|
||||||
lazygit
|
lazygit
|
||||||
lua-language-server
|
lua-language-server
|
||||||
|
markdownlint-cli2
|
||||||
|
marksman
|
||||||
nil
|
nil
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
ripgrep
|
ripgrep
|
||||||
|
@ -118,10 +125,6 @@
|
||||||
stylelint
|
stylelint
|
||||||
stylua
|
stylua
|
||||||
universal-ctags
|
universal-ctags
|
||||||
gopls
|
|
||||||
gotools
|
|
||||||
gofumpt
|
|
||||||
helm-ls
|
|
||||||
vscode-langservers-extracted
|
vscode-langservers-extracted
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -244,6 +247,10 @@
|
||||||
# JSON
|
# JSON
|
||||||
SchemaStore-nvim
|
SchemaStore-nvim
|
||||||
|
|
||||||
|
# Markdown
|
||||||
|
markdown-preview-nvim
|
||||||
|
render-markdown-nvim
|
||||||
|
|
||||||
# Custom
|
# Custom
|
||||||
rose-pine
|
rose-pine
|
||||||
diffview-nvim
|
diffview-nvim
|
||||||
|
|
1
init.lua
1
init.lua
|
@ -58,6 +58,7 @@ require('nixCatsUtils.lazyCat').setup(nixCats.pawsible { 'allPlugins', 'start',
|
||||||
{ import = 'lazyvim.plugins.extras.lang.go' },
|
{ import = 'lazyvim.plugins.extras.lang.go' },
|
||||||
{ import = 'lazyvim.plugins.extras.lang.helm' },
|
{ import = 'lazyvim.plugins.extras.lang.helm' },
|
||||||
{ import = 'lazyvim.plugins.extras.lang.json' },
|
{ import = 'lazyvim.plugins.extras.lang.json' },
|
||||||
|
{ import = 'lazyvim.plugins.extras.lang.markdown' },
|
||||||
{ import = 'lazyvim.plugins.extras.lang.nix' },
|
{ import = 'lazyvim.plugins.extras.lang.nix' },
|
||||||
|
|
||||||
-- These need to be after extras to prevent extras from overwriting them.
|
-- These need to be after extras to prevent extras from overwriting them.
|
||||||
|
|
34
packages/markdown-toc/default.nix
Normal file
34
packages/markdown-toc/default.nix
Normal 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
1890
packages/markdown-toc/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue