From 5a7630cac761e91335d2f25cb07a81271569c791 Mon Sep 17 00:00:00 2001 From: Ahmed Khalf Date: Wed, 11 Aug 2021 16:00:41 +0400 Subject: Add spell checking to git commit filetype (#1291) --- lua/core/autocmds.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua') diff --git a/lua/core/autocmds.lua b/lua/core/autocmds.lua index c00e4ba7..91278544 100644 --- a/lua/core/autocmds.lua +++ b/lua/core/autocmds.lua @@ -56,6 +56,10 @@ lvim.autocommands = { -- {'BufWinEnter', '.gmi', 'setlocal filetype=markdown'}, {'BufRead', '*.gmi', 'setlocal filetype=markdown'}, -- {'BufNewFile', '*.gmi', 'setlocal filetype=markdown'} -- }, + _git = { + { "FileType", "gitcommit", "setlocal wrap" }, + { "FileType", "gitcommit", "setlocal spell" }, + }, _markdown = { { "FileType", "markdown", "setlocal wrap" }, { "FileType", "markdown", "setlocal spell" }, -- cgit v1.2.3