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,
|
||||
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'
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user