summaryrefslogtreecommitdiff
path: root/lua/core/autocmds.lua
diff options
context:
space:
mode:
authorAhmed Khalf <[email protected]>2021-08-11 16:00:41 +0400
committerGitHub <[email protected]>2021-08-11 14:00:41 +0200
commit5a7630cac761e91335d2f25cb07a81271569c791 (patch)
treec629403824e137fab008808320f190ef7c3e9305 /lua/core/autocmds.lua
parentb26b61e3041b860967640e7172eac87f16b258d9 (diff)
Add spell checking to git commit filetype (#1291)
Diffstat (limited to 'lua/core/autocmds.lua')
-rw-r--r--lua/core/autocmds.lua4
1 files changed, 4 insertions, 0 deletions
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" },