From 3362873c0af235f1fec630aae2a14a8c9204a853 Mon Sep 17 00:00:00 2001 From: Devin Lumley <2636402+devinwl@users.noreply.github.com> Date: Wed, 10 Jan 2024 10:22:30 -0800 Subject: [PATCH] feat: add autocmds config --- README.md | 13 +++++++++++++ init.lua | 1 + lua/autocmds.lua | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 README.md create mode 100644 lua/autocmds.lua 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 +})