Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rainbow-delimiters module #366

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jamesoff
Copy link
Contributor

Adds support for rainbow-delimiters, which replaces tsrainbow2.

I'm marking this as draft as I've not been able to successfully make docgen due to the following, which I don't know enough about the moving parts to fix:

nightfox.nvim % make docgen
Error running Lua:
misc/panvimdoc/scripts/panvimdoc.lua:198: attempt to perform arithmetic on a nil value (field 'incrementheadinglevelby')
stack traceback:
        while rendering Pandoc
stack traceback:
make: *** [docgen] Error 84

(I just did brew install pandoc to install it, hopefully that's correct.)

If you can handle that part, this is hopefully good to go.

@olssonks
Copy link

I found that if you add the line --metadata="incrementheadinglevelby:0" \ to the MakeFile, this fixes the problem with running docgen.

I don't know why this isn't an issue for others. It seems usage.md hasn't been changed by any of the PRs after the rewrite(#77), where panvimdoc was added to .gitignore. Maybe other folks just aren't running make docgen, so they haven't encountered this problem.

.PHONY : docgen
docgen: $(pandocdir)
	@pandoc \
		--metadata=project:nightfox \
		--metadata="description:A highly customizable theme for vim and neovim" \
		--metadata="incrementheadinglevelby:0" \
		--lua-filter misc/panvimdoc/scripts/skip-blocks.lua \
		--lua-filter misc/panvimdoc/scripts/include-files.lua \
		-t misc/panvimdoc/scripts/panvimdoc.lua \
		usage.md \
		-o doc/nightfox.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants