diff --git a/README.md b/README.md new file mode 100644 index 0000000..285cf32 --- /dev/null +++ b/README.md @@ -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 diff --git a/init.lua b/init.lua index 93f817c..9666a73 100644 --- a/init.lua +++ b/init.lua @@ -61,3 +61,4 @@ end require("lazy").setup("plugins") require("keybinds") +require("autocmds") diff --git a/lua/autocmds.lua b/lua/autocmds.lua new file mode 100644 index 0000000..7657ff3 --- /dev/null +++ b/lua/autocmds.lua @@ -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 +})