diff options
| author | michaelpeeters-st <michael.peeters@st.com> | 2026-06-25 19:57:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-25 13:57:49 -0400 |
| commit | 2d265672c9684a41f023aa536fc83213d2b1afe0 (patch) | |
| tree | 4517d8f4cdcade7f7ac0895ac95394b5d1d80325 /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar.gz nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar.bz2 nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar.lz nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar.xz nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.tar.zst nvim-lspconfig-2d265672c9684a41f023aa536fc83213d2b1afe0.zip | |
Enable clangd lsp for c.doxygen / cpp.doxygen #4459
This fixes #4458.
One option to get doxygen highlighting in C / C++ files is to
append `.doxygen` to the file type (see `:help doxygen`).
This commits add the `c.doxygen` / `cpp.doxygen` filetypes to the list
of clangd lsp to be compatible with this approach.
Note that vim help also recommend an alternative approach that
doesn't change the filetype, which is to define the variable:
let g:load_doxygen_syntax=1
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/clangd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/clangd.lua b/lua/lspconfig/configs/clangd.lua index 5b2f703f..27945ec4 100644 --- a/lua/lspconfig/configs/clangd.lua +++ b/lua/lspconfig/configs/clangd.lua @@ -57,7 +57,7 @@ end return { default_config = { cmd = { 'clangd' }, - filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' }, + filetypes = { 'c', 'c.doxygen', 'cpp', 'cpp.doxygen', 'objc', 'objcpp', 'cuda' }, root_dir = function(fname) return util.root_pattern( '.clangd', |
