2023-07-29 18:15:47 +00: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
|
|
|
|
-- Add any additional autocmds here
|
2023-07-29 22:50:07 +00:00
|
|
|
|
|
|
|
-- Disable spell checking
|
|
|
|
vim.api.nvim_clear_autocmds({
|
|
|
|
group = "lazyvim_wrap_spell",
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Enable wrapping
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
pattern = { "gitcommit", "markdown" },
|
|
|
|
callback = function()
|
|
|
|
vim.opt_local.wrap = true
|
|
|
|
end,
|
|
|
|
})
|