Mofiqul / dracula.nvim

Dracula colorscheme for neovim written in Lua
MIT License
594 stars 102 forks source link

Change color of markdown headlines #121

Closed nshern closed 5 months ago

nshern commented 7 months ago

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
magnuslarsen commented 7 months ago

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

Mofiqul commented 7 months ago

@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