Skip to content

Commit df1a618

Browse files
committed
Add error styling to git commit overflow text
1 parent 693d49d commit df1a618

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dot_config/nvim/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,9 @@ require('lazy').setup({
813813
},
814814
}
815815

816+
-- Add error styling to git commit overflow text
817+
vim.api.nvim_set_hl(0, 'gitcommitOverflow', { link = 'Error' })
818+
816819
-- Load the colorscheme here.
817820
-- Like many other themes, this one has different styles, and you could load
818821
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
@@ -875,6 +878,8 @@ require('lazy').setup({
875878
-- If you are experiencing weird indenting issues, add the language to
876879
-- the list of additional_vim_regex_highlighting and disabled languages for indent.
877880
additional_vim_regex_highlighting = { 'ruby' },
881+
-- Use the built-in syntax highlighting for the following:
882+
disable = { 'gitcommit' },
878883
},
879884
indent = { enable = true, disable = { 'ruby' } },
880885
},

0 commit comments

Comments
 (0)