mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -05:00
Add regex highlighting to php as syntax-based indentation is broken with just treesitter
This commit is contained in:
parent
2272519e44
commit
222d5d89af
2 changed files with 3 additions and 1 deletions
|
@ -245,6 +245,8 @@ endfun
|
||||||
hi! link objcSuperclass objcClass
|
hi! link objcSuperclass objcClass
|
||||||
|
|
||||||
"php
|
"php
|
||||||
|
call s:C("phpIdentifier",g:cBlue,"","")
|
||||||
|
call s:C("phpRelation",g:cYellow,"","")
|
||||||
hi! link phpArrayPair Operator
|
hi! link phpArrayPair Operator
|
||||||
hi! link phpNull Constant
|
hi! link phpNull Constant
|
||||||
hi! link phpSuperglobal Identifier
|
hi! link phpSuperglobal Identifier
|
||||||
|
|
|
@ -18,7 +18,7 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = { "gitcommit", "markdown", "tmux" },
|
disable = { "gitcommit", "markdown", "tmux" },
|
||||||
additional_vim_regex_highlighting = { "diff", "scss" },
|
additional_vim_regex_highlighting = { "diff", "php", "scss" },
|
||||||
},
|
},
|
||||||
|
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
|
Loading…
Reference in a new issue