nvim: set ft=cpp to ft=cpp.doxygen
This commit is contained in:
parent
8b6b4ba02c
commit
25cb1d7760
|
@ -4,7 +4,7 @@ require 'nvim-treesitter.configs'.setup {
|
||||||
sync_install = true,
|
sync_install = true,
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
additional_vim_regex_highlighting = { 'org' }
|
additional_vim_regex_highlighting = { 'cpp', 'org' }
|
||||||
},
|
},
|
||||||
context_commentstring = {
|
context_commentstring = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
@ -45,6 +45,13 @@ vim.api.nvim_create_autocmd({ 'BufEnter' }, {
|
||||||
command = [[AnsiEsc]]
|
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({
|
require("todo-comments").setup({
|
||||||
signs = false,
|
signs = false,
|
||||||
highlight = {
|
highlight = {
|
||||||
|
@ -69,7 +76,7 @@ require('colorizer').setup({
|
||||||
require('paint').setup({
|
require('paint').setup({
|
||||||
highlights = {
|
highlights = {
|
||||||
{
|
{
|
||||||
filter = { filetype = 'cpp' },
|
filter = { filetype = 'cpp.doxygen' },
|
||||||
pattern = '%s*%*!?%s*(@%w+)',
|
pattern = '%s*%*!?%s*(@%w+)',
|
||||||
hl = 'Constant'
|
hl = 'Constant'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user