dracula.nvim icon indicating copy to clipboard operation
dracula.nvim copied to clipboard

Change color of markdown headlines

Open nshern opened this issue 1 year ago • 2 comments

Is it possible to make it so that each headline has its own color, similar to e.g. catppuccin?

Dracula: Screenshot 2024-01-18 at 09 17 45

Catppuccin Screenshot 2024-01-18 at 09 31 07

nshern avatar Jan 18 '24 08:01 nshern

This doesn't seem to be in the Dracula spec: https://spec.draculatheme.com/#sec-Markup-Markdown-RST-etc-

Though you can customize the colors yourself, by doing something like:

	{
		"Mofiqul/dracula.nvim",
		priority = 1000,
		config = function()
			local dracula = require("dracula")
			dracula.setup({
				overrides = {
					["@markup.heading.2"] = { fg = dracula.colors().purple },
					["@markup.heading.3"] = { fg = dracula.colors().yellow },
				},
			})

			vim.cmd.colorscheme("dracula")
		end,
	},

Note: before https://github.com/Mofiqul/dracula.nvim/issues/122 is fixed, you should swap @markup.heading with @text.title

magnuslarsen avatar Jan 22 '24 10:01 magnuslarsen

@magnuslarsen @nshern - Even though this can be archives through config, having it in the color scheme would be great. I will have it done when I am free

Mofiqul avatar Jan 22 '24 14:01 Mofiqul