Browse Source

Add spell checking to git commit filetype (#1291)

Ahmed Khalf 3 năm trước cách đây
mục cha
commit
5a7630cac7
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      lua/core/autocmds.lua

+ 4 - 0
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" },