1
0
Fork 0

nvim: set ft=cpp to ft=cpp.doxygen

This commit is contained in:
tastytea 2022-11-21 17:13:09 +01:00
parent 8b6b4ba02c
commit 25cb1d7760
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 9 additions and 2 deletions

View File

@ -4,7 +4,7 @@ require 'nvim-treesitter.configs'.setup {
sync_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = { 'org' }
additional_vim_regex_highlighting = { 'cpp', 'org' }
},
context_commentstring = {
enable = true,
@ -45,6 +45,13 @@ vim.api.nvim_create_autocmd({ 'BufEnter' }, {
command = [[AnsiEsc]]
})
-- <https://github.com/tree-sitter/tree-sitter-cpp/issues/116>
vim.api.nvim_create_autocmd({ 'FileType' }, {
group = ffgroup,
pattern = { 'cpp' },
command = [[set ft=cpp.doxygen]]
})
require("todo-comments").setup({
signs = false,
highlight = {
@ -69,7 +76,7 @@ require('colorizer').setup({
require('paint').setup({
highlights = {
{
filter = { filetype = 'cpp' },
filter = { filetype = 'cpp.doxygen' },
pattern = '%s*%*!?%s*(@%w+)',
hl = 'Constant'
},