From 8f181722ee3ce69bf8b07b2fa78ed315d25f1a6c Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 17 Feb 2023 12:12:57 -0600 Subject: [PATCH] feat(nvim): better documentation appearance --- .../primary/config/lua/plugins/plugins.lua | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 288efbf3..bd15204c 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -813,6 +813,31 @@ lazy.setup({ "famiu/bufdelete.nvim", event = "VeryLazy", }, + + -- Improved Visuals for Documentation + { + "atusy/tsnode-marker.nvim", + lazy = true, + filetype = "markdown", + init = function() + vim.api.nvim_create_autocmd("FileType", { + group = vim.api.nvim_create_augroup("tsnode-marker-markdown", {}), + pattern = "markdown", + callback = function(ctx) + require("tsnode-marker").set_automark(ctx.buf, { + target = { "code_fence_content" }, -- list of target node types + hl_group = "CursorLine", -- highlight group + }) + end, + }) + end, + }, + { + "lukas-reineke/headlines.nvim", + config = function() + require("headlines").setup() + end, + }, }, { checker = { enabled = true,