revert(autocommand): revert back to markdown autocommand trigger

- reverts b6dae05d63c0ae3ffc13f126f1fa5e818f12c52c
- Some weird behaviour where things where detected as pandoc at random
This commit is contained in:
Fabrice Mouhartem 2025-02-17 15:09:40 +01:00
parent 3508cdd8f6
commit 0af5352a17
Signed by: fmouhart
GPG Key ID: 2C5033B228CFE4E7

View File

@ -3,7 +3,7 @@ local spelling = vim.api.nvim_create_augroup("spelling", { clear = true })
local spell_keymap = require('spelling').spell_keymap
-- Recognize .md as pandoc
vim.api.nvim_create_autocmd({ "BufNew", "VimEnter" }, {
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.md", },
group = markdown,
callback = function()