Compare commits

..

2 commits

2 changed files with 9 additions and 2 deletions

View file

@ -409,6 +409,13 @@ endfun
hi! link @number.scss @number.css hi! link @number.scss @number.css
hi! link @property.scss @property.css hi! link @property.scss @property.css
hi! link @variable.scss @variable.css hi! link @variable.scss @variable.css
"diff
call s:C("@attribute.diff",g:cYellow,"","")
call s:C("@constant.diff",g:cBlue,"","italic")
call s:C("@diff.minus",g:cYellow,"","")
call s:C("@diff.plus",g:cBlue,"","")
call s:C("@function.diff",g:cRed,"","bold")
endif endif
"}}} "}}}

View file

@ -10,7 +10,7 @@ if (vim.g.enabletreesitter == 1) then
vim.opt.runtimepath:append(parser_dir) vim.opt.runtimepath:append(parser_dir)
require("nvim-treesitter.configs").setup({ require("nvim-treesitter.configs").setup({
ensure_installed = { "bash", "c", "cpp", "css", "git_config", "go", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "toml", "typescript", "vim", "vimdoc", "vue" }, ensure_installed = { "bash", "c", "cpp", "css", "diff", "git_config", "go", "html", "java", "javascript", "json", "lua", "php", "python", "query", "rust", "scss", "toml", "typescript", "vim", "vimdoc", "vue" },
sync_install = true, sync_install = true,
auto_install = true, auto_install = true,
parser_install_dir = parser_dir, parser_install_dir = parser_dir,
@ -18,7 +18,7 @@ if (vim.g.enabletreesitter == 1) then
highlight = { highlight = {
enable = true, enable = true,
disable = { "gitcommit", "markdown" }, disable = { "gitcommit", "markdown" },
additional_vim_regex_highlighting = { "scss" }, additional_vim_regex_highlighting = { "diff", "scss" },
}, },
textobjects = { textobjects = {