nvim: add paint plugin for syntax hl workarounds
This commit is contained in:
parent
4a7f2d8f2f
commit
8b6b4ba02c
@ -64,3 +64,14 @@ require('colorizer').setup({
|
||||
RRGGBBAA = true,
|
||||
}
|
||||
})
|
||||
|
||||
-- workarounds for missing syntax highlighting
|
||||
require('paint').setup({
|
||||
highlights = {
|
||||
{
|
||||
filter = { filetype = 'cpp' },
|
||||
pattern = '%s*%*!?%s*(@%w+)',
|
||||
hl = 'Constant'
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -54,6 +54,9 @@ require('packer').startup({ function(use)
|
||||
}
|
||||
use { 'https://github.com/NvChad/nvim-colorizer.lua' }
|
||||
use { 'https://github.com/chikamichi/mediawiki.vim' }
|
||||
if vim.version().api_level >= 10 then -- >=0.8.0
|
||||
use { 'https://github.com/folke/paint.nvim' }
|
||||
end
|
||||
|
||||
-- completion
|
||||
use {
|
||||
|
Loading…
x
Reference in New Issue
Block a user