Dane Sabo 1f0aa5733b Auto sync: 2025-08-18 11:10:38 (4 files changed)
M  lazy-lock.json

M  lua/custom/chadrc.lua

M  lua/custom/language_specific_commands/markdown.lua

M  lua/custom/plugins.lua
2025-08-18 11:10:38 -04:00

28 lines
1.0 KiB
Lua

vim.keymap.set(
"n",
"<leader>mi",
"<M-i><!The quick brown fox jumps over the lazy dog. The dog takes a nice nap. :)>",
{ desc = "Print a standard 80 character string for Markdown formatting." }
)
-- Create an autocommand for markdown filetype using Neovim's Lua API
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
"tex", -- Only for files with filetype 'markdown'
callback = function()
-- Enable spell checking locally for the buffer
vim.opt_local.spell = true
-- Optionally, set the spell language (e.g., US English)
vim.opt_local.spelllang = "en_us"
-- You can add additional buffer-local settings here if needed
-- Set the conceal level to 2 to render links in a pretty way
vim.wo.conceallevel = 2
-- and set it to conceal in normal and command modes
vim.wo.concealcursor = "nc"
-- wrap text at 80 chars and show a visual line guide
vim.opt_local.textwidth = 60
vim.opt_local.formatoptions:append "t"
end,
})
print "Markdown Keybinds Loaded"