Port over filetype plugin settings
This commit is contained in:
14
after/ftplugin/gitcommit.lua
Normal file
14
after/ftplugin/gitcommit.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
vim.opt.spell = true
|
||||
|
||||
-- Auto-wrap text using textwidth
|
||||
vim.opt.formatoptions:append('t')
|
||||
-- When formatting text, recognize numbered lists
|
||||
vim.opt.formatoptions:append('n')
|
||||
-- Allow formatting of comments with 'gq'
|
||||
vim.opt.formatoptions:append('q')
|
||||
-- Automatically insert the current comment leader after hitting 'o' or 'O' in
|
||||
-- Normal mode
|
||||
vim.opt.formatoptions:append('o')
|
||||
|
||||
-- A pattern that is used to recognize a list header
|
||||
vim.opt.formatlistpat = "^\\s*\\d\\+\\.\\s\\+\\|^[-*+]\\s\\+"
|
||||
Reference in New Issue
Block a user