Improved configuration

This commit is contained in:
Eduard Urbach 2023-07-30 00:50:07 +02:00
parent 33708b313f
commit 09e0d65d2f
Signed by: eduard
GPG key ID: 49226B848C78F6C8
12 changed files with 62 additions and 43 deletions

View file

@ -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,
})