1
0
Fork 0

nvim: add paint plugin for syntax hl workarounds

This commit is contained in:
tastytea 2022-11-21 17:12:17 +01:00
parent 4a7f2d8f2f
commit 8b6b4ba02c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 14 additions and 0 deletions

View File

@ -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'
},
}
})

View File

@ -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 {