Skip to content

Commit

Permalink
Fix Markdown headlines in LazyVim
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstosik committed Jul 6, 2024
1 parent fd40e70 commit f8160d8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 10 deletions.
20 changes: 10 additions & 10 deletions modules/041-neovim/config-nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"copilot.lua": { "branch": "master", "commit": "86537b286f18783f8b67bccd78a4ef4345679625" },
"dashboard-nvim": { "branch": "master", "commit": "e6e33b848f0e2fe5c13f6553c568764555c390a3" },
"dressing.nvim": { "branch": "master", "commit": "6741f1062d3dc6e4755367a7e9b347b553623f04" },
"flash.nvim": { "branch": "main", "commit": "93455045d73c67e5e231c4b06dc68cd0545b1ada" },
"flash.nvim": { "branch": "main", "commit": "b3948e75f521878f5bd5a8ae8ee4cf1b1f64b76a" },
"friendly-snippets": { "branch": "main", "commit": "682157939e57bd6a2c86277dfd4d6fbfce63dbac" },
"gitsigns.nvim": { "branch": "main", "commit": "39b5b6f48bde0595ce68007ffce408c5d7ac1f79" },
"headlines.nvim": { "branch": "master", "commit": "618ef1b2502c565c82254ef7d5b04402194d9ce3" },
"indent-blankline.nvim": { "branch": "master", "commit": "65e20ab94a26d0e14acac5049b8641336819dfc7" },
"lazy.nvim": { "branch": "main", "commit": "6ca23c15f64e88e3ba26be9795343c4c7f2ee851" },
"lazydev.nvim": { "branch": "main", "commit": "3718fd0d101c1ff98fedc716b11a7e88854e2f1a" },
"lazydev.nvim": { "branch": "main", "commit": "0d859f86b020fbe05990c963b4a45c1ce7dcb43d" },
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"luvit-meta": { "branch": "main", "commit": "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
Expand All @@ -30,10 +30,10 @@
"mini.pairs": { "branch": "main", "commit": "927d19cbdd0e752ab1c7eed87072e71d2cd6ff51" },
"mini.surround": { "branch": "main", "commit": "7098744c8d4573a4b32cb172965f6b2ba03465d2" },
"neo-tree.nvim": { "branch": "main", "commit": "206241e451c12f78969ff5ae53af45616ffc9b72" },
"neoconf.nvim": { "branch": "main", "commit": "e913c670bd31c0efe8a3547861616b996fc21ebe" },
"neoconf.nvim": { "branch": "main", "commit": "a4a488ff475016b4f5e75f431855cef5504a714e" },
"neotest": { "branch": "master", "commit": "26ed90509c377d10dbdebd25b7094a886323b32b" },
"neotest-rspec": { "branch": "main", "commit": "48573d5882cbe8d8bcd3b735d9ee7705168b1b87" },
"noice.nvim": { "branch": "main", "commit": "f26515c768a4b8eb39b4ec6b04d244ad4bc7cfc9" },
"noice.nvim": { "branch": "main", "commit": "f278f273e9c9a43bd18ac293b0c36d39b7deec89" },
"nui.nvim": { "branch": "main", "commit": "61574ce6e60c815b0a0c4b5655b8486ba58089a1" },
"nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" },
"nvim-dap": { "branch": "master", "commit": "6f79b822997f2e8a789c6034e147d42bc6706770" },
Expand All @@ -51,14 +51,14 @@
"nvim-treesitter-textobjects": { "branch": "master", "commit": "34867c69838078df7d6919b130c0541c0b400c47" },
"nvim-ts-autotag": { "branch": "main", "commit": "ddfccbf0df1b9349c2b9e9b17f4afa8f9b6c1ed1" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "2b7dcf6aab0947b9c4195f1d8aa592cdcd944ffe" },
"persistence.nvim": { "branch": "main", "commit": "04599f36b5fa9b2bb0fca09c7b5ac2d1fda5a8e1" },
"persistence.nvim": { "branch": "main", "commit": "57953891f8183a49bff2da2cc16995969b8eaed4" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
"telescope.nvim": { "branch": "master", "commit": "bfcc7d5c6f12209139f175e6123a7b7de6d9c18a" },
"todo-comments.nvim": { "branch": "main", "commit": "92e180db74102057263bd5a1dc30056b03424a08" },
"tokyonight.nvim": { "branch": "main", "commit": "3657946439efe55c9ff51ad92c100f266e29a601" },
"trouble.nvim": { "branch": "main", "commit": "34be821abfd5ee0aba337a1869d2161c36c45b1d" },
"ts-comments.nvim": { "branch": "main", "commit": "4f682e95b55cfeb767b20917889798005424034d" },
"which-key.nvim": { "branch": "main", "commit": "c13a5fb71b5b05d21c15b317d90269d7c7774892" },
"todo-comments.nvim": { "branch": "main", "commit": "01b4599b36ea873305a993c93cb6186cb03a51e7" },
"tokyonight.nvim": { "branch": "main", "commit": "c2dde8d093b4196a24e8c0fd69ca272f31ba05b9" },
"trouble.nvim": { "branch": "main", "commit": "e32c194558ebeb433ccfd580a34c66770bc102bd" },
"ts-comments.nvim": { "branch": "main", "commit": "ea43f37f7c685316c2d30dbae1c6892beb27cd41" },
"which-key.nvim": { "branch": "main", "commit": "ca2d995c1f7d1ba4ce54a9936a6cdd8cfa594f2d" },
"yanky.nvim": { "branch": "main", "commit": "73215b77d22ebb179cef98e7e1235825431d10e4" }
}
28 changes: 28 additions & 0 deletions modules/041-neovim/config-nvim/lua/plugins/headlines.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
return {
{
"lukas-reineke/headlines.nvim",
event = "VeryLazy",
ft = function()
return {}
end,
opts = function(_, opts)
local opts = {}
for _, ft in ipairs({ "markdown", "norg", "rmd", "org" }) do
opts[ft] = {
headline_highlights = {},
-- bullets = {},
-- Change lower/upper headline string to use more supported characters
-- see https://github.com/lukas-reineke/headlines.nvim/pull/89
fat_headline_lower_string = "",
fat_headline_upper_string = "",
}
for i = 1, 6 do
local hl = "Headline" .. i
vim.api.nvim_set_hl(0, hl, { link = "Headline", default = true })
table.insert(opts[ft].headline_highlights, hl)
end
end
return opts
end,
},
}

0 comments on commit f8160d8

Please sign in to comment.