aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lsp/clangd.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp/clangd.lua b/lsp/clangd.lua
index 07ad3470..c1abda42 100644
--- a/lsp/clangd.lua
+++ b/lsp/clangd.lua
@@ -74,6 +74,10 @@ return {
'configure.ac', -- AutoTools
'.git',
},
+ get_language_id = function(_, ftype)
+ local t = { objc = 'objective-c', objcpp = 'objective-cpp', cuda = 'cuda-cpp' }
+ return t[ftype] or ftype
+ end,
capabilities = {
textDocument = {
completion = {