after/ftplugin instead of autocmd
Use after/ftplugin instead of autocmds to handle options depending on filetype
This commit is contained in:
parent
6997f3da65
commit
aa0f1fbd92
5 changed files with 26 additions and 9 deletions
8
after/ftplugin/gitcommit.lua
Normal file
8
after/ftplugin/gitcommit.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- TIP: If you want custom color of colorcolumn local to window
|
||||
-- do
|
||||
-- local ns = vim.api.nvim_create_namespace('gitcommit')
|
||||
-- vim.api.nvim_set_hl(ns, 'ColorColumn', { link = '#ff0000' })
|
||||
-- vim.api.nvim_win_set_hl_ns(0, ns)
|
||||
-- end
|
||||
vim.bo.textwidth = 72
|
||||
vim.wo.colorcolumn = "+0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue