fix: syntax highlighting for diffs
This commit is contained in:
@@ -4,10 +4,7 @@ Config.now(function()
|
|||||||
require('rose-pine').setup({
|
require('rose-pine').setup({
|
||||||
enable = { terminal = false, legacy_highlights = false, migrations = false, },
|
enable = { terminal = false, legacy_highlights = false, migrations = false, },
|
||||||
styles = { italic = false },
|
styles = { italic = false },
|
||||||
highlight_groups = {
|
groups = { git_change = 'gold', git_text = 'gold' },
|
||||||
MiniDiffOverAdd = { fg = 'NONE', bg = 'foam', blend = 20 },
|
|
||||||
MiniDiffOverChangeBuf = { bg = 'rose', blend = 20 },
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd.colorscheme('rose-pine')
|
vim.cmd.colorscheme('rose-pine')
|
||||||
@@ -22,7 +19,7 @@ Config.now_if_args(function()
|
|||||||
local filetypes = {
|
local filetypes = {
|
||||||
'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript',
|
'html', 'css', 'lua', 'go', 'php', 'blade', 'sql', 'javascript',
|
||||||
'typescript', 'typescriptreact', 'svelte', 'dockerfile', 'yaml', 'markdown', 'dart',
|
'typescript', 'typescriptreact', 'svelte', 'dockerfile', 'yaml', 'markdown', 'dart',
|
||||||
'json', 'xml', 'toml', 'sh', 'zsh', 'just', 'gitcommit', 'diff', 'regex', 'http'
|
'json', 'xml', 'toml', 'sh', 'zsh', 'just', 'gitcommit', 'diff', 'regex', 'http', 'kotlin'
|
||||||
}
|
}
|
||||||
|
|
||||||
Config.autocmd('FileType', filetypes, function(ev)
|
Config.autocmd('FileType', filetypes, function(ev)
|
||||||
|
|||||||
Reference in New Issue
Block a user