2023-01-07 17:52:40 +08:00
|
|
|
-- Autocmds are automatically loaded on the VeryLazy event
|
|
|
|
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
2024-12-12 00:56:39 +08:00
|
|
|
--
|
2023-01-07 17:52:40 +08:00
|
|
|
-- Add any additional autocmds here
|
2024-12-12 00:56:39 +08:00
|
|
|
-- with `vim.api.nvim_create_autocmd`
|
|
|
|
|
--
|
|
|
|
|
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
|
|
|
|
|
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
|
2025-03-24 13:19:29 +08:00
|
|
|
|
|
|
|
|
-- Disable spell check for markdown files
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
|
pattern = "markdown",
|
|
|
|
|
callback = function()
|
|
|
|
|
vim.opt_local.spell = false
|
|
|
|
|
end,
|
|
|
|
|
})
|