diff --git a/lua/custom/language_specific_commands/markdown.lua b/lua/custom/language_specific_commands/markdown.lua index 2d0a6fd..a8351ee 100644 --- a/lua/custom/language_specific_commands/markdown.lua +++ b/lua/custom/language_specific_commands/markdown.lua @@ -6,8 +6,8 @@ vim.keymap.set( ) -- 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' + pattern = { "markdown", "tex" }, + -- Only for files with filetype 'markdown' callback = function() -- Enable spell checking locally for the buffer vim.opt_local.spell = true