Improved configuration
This commit is contained in:
@ -1,3 +1,16 @@
|
||||
-- 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
|
||||
|
||||
-- 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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user