feat: add autocmds config

This commit is contained in:
Devin Lumley 2024-01-10 10:22:30 -08:00
parent 9dc1ca27b3
commit 3362873c0a
3 changed files with 21 additions and 0 deletions

13
README.md Normal file
View file

@ -0,0 +1,13 @@
# wonderfulfrog's Neovim configuration
Uses [lazy.nvim][lazynvim] to manage plugins.
It's pretty opinionated. You might not like it.
## Installation
1. Clone this repo into Neovim's config folder.
2. Run Neovim.
3. Wait for everything to install.
[lazynvim]: https://github.com/folke/lazy.nvim

View file

@ -61,3 +61,4 @@ end
require("lazy").setup("plugins")
require("keybinds")
require("autocmds")

7
lua/autocmds.lua Normal file
View file

@ -0,0 +1,7 @@
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt.wrap = true
end
})