summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--after/ftplugin/gitcommit.lua2
l---------after/ftplugin/gitrebase.lua1
-rw-r--r--lua/core/auto.lua7
3 files changed, 3 insertions, 7 deletions
diff --git a/after/ftplugin/gitcommit.lua b/after/ftplugin/gitcommit.lua
new file mode 100644
index 0000000..8207d63
--- /dev/null
+++ b/after/ftplugin/gitcommit.lua
@@ -0,0 +1,2 @@
+vim.cmd('set spell!')
+vim.cmd('startinsert | 1')
diff --git a/after/ftplugin/gitrebase.lua b/after/ftplugin/gitrebase.lua
new file mode 120000
index 0000000..9619e9a
--- /dev/null
+++ b/after/ftplugin/gitrebase.lua
@@ -0,0 +1 @@
+gitcommit.lua \ No newline at end of file
diff --git a/lua/core/auto.lua b/lua/core/auto.lua
index 4c50357..170f2d7 100644
--- a/lua/core/auto.lua
+++ b/lua/core/auto.lua
@@ -13,13 +13,6 @@ auto('TextYankPost', { -- highlight yanks
end
})
-auto('FileType', { -- start git messages in insert mode
- group = 'bufcheck',
- pattern = { 'gitcommit', 'gitrebase', },
- desc = 'Start git messages in insert mode.',
- command = 'startinsert | 1'
-})
-
auto('BufRead', { -- return to last place
pattern = '*',
command = [[call setpos(".", getpos("'\""))]],