Auto sync: 2025-08-18 11:12:30 (1 files changed)

M  lua/custom/language_specific_commands/markdown.lua
This commit is contained in:
Dane Sabo 2025-08-18 11:12:30 -04:00
parent 1f0aa5733b
commit c2872eae66

View File

@ -6,8 +6,8 @@ vim.keymap.set(
) )
-- Create an autocommand for markdown filetype using Neovim's Lua API -- Create an autocommand for markdown filetype using Neovim's Lua API
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = { "markdown", "tex" },
"tex", -- Only for files with filetype 'markdown' -- Only for files with filetype 'markdown'
callback = function() callback = function()
-- Enable spell checking locally for the buffer -- Enable spell checking locally for the buffer
vim.opt_local.spell = true vim.opt_local.spell = true