summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2026-09-29 23:31:31 +0300
committerKyren223 <contact@kyren.codes>2026-09-29 23:31:31 +0300
commit6609d1e481d40561d21c0701f72d9505519c9f68 (patch)
treebd1960f5b03195e3293393aee566083add1aa1d2
parent5cd980319a3344e4b7a86dbb25f6f43df87629e2 (diff)
Hide markdown links and stuff unless hovered on only in WorldBuilding dir
-rw-r--r--.config/nvim/lua/plugins/render-markdown.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/render-markdown.lua b/.config/nvim/lua/plugins/render-markdown.lua
index 40f30b3..1dac8fd 100644
--- a/.config/nvim/lua/plugins/render-markdown.lua
+++ b/.config/nvim/lua/plugins/render-markdown.lua
@@ -13,4 +13,21 @@ return {
checked = { icon = ' ' },
},
},
+ config = function(_, opts)
+ local cwd = vim.fn.getcwd()
+ local project = vim.fn.expand('$HOME/projects/WorldBuilding/')
+ if cwd == project or cwd:sub(1, #project + 1) == project .. '/' then
+ opts.win_options = {
+ concealcursor = {
+ default = vim.api.nvim_get_option_value('concealcursor', {}),
+ rendered = 'n',
+ },
+ }
+ opts.anti_conceal = {
+ enabled = true,
+ disabled_modes = { 'n' },
+ }
+ end
+ require('render-markdown').setup(opts)
+ end,
}