markdown.lua

dotfiles.git > main > c4b4eb9 > files / nvim / ftplugin / markdown.lua

local ol = vim.opt_local
ol.wrap = true
ol.linebreak = true
ol.spell = true
ol.columns = 80
ol.showbreak = " "

--- Registers the predicate the wikilink highlights use
require("wikilink")
vim.treesitter.start()

local follow = function(fallback) return function() require("wikilink").follow(fallback) end end
vim.keymap.set("n", "gd", follow("gd"), {buffer = true})
vim.keymap.set("n", "gf", follow("gf"), {buffer = true})