feat: add autocmds config
This commit is contained in:
parent
9dc1ca27b3
commit
3362873c0a
3 changed files with 21 additions and 0 deletions
13
README.md
Normal file
13
README.md
Normal 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
|
1
init.lua
1
init.lua
|
@ -61,3 +61,4 @@ end
|
||||||
|
|
||||||
require("lazy").setup("plugins")
|
require("lazy").setup("plugins")
|
||||||
require("keybinds")
|
require("keybinds")
|
||||||
|
require("autocmds")
|
||||||
|
|
7
lua/autocmds.lua
Normal file
7
lua/autocmds.lua
Normal 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
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue