From cfc12beefe39cdcb77ff81fa49e71cc42cdf4fbc Mon Sep 17 00:00:00 2001 From: Amitayas Banerjee <86668810+amitayas@users.noreply.github.com> Date: Tue, 24 Feb 2026 02:40:07 +0530 Subject: fix(clangd): languageIds for objc, cuda #4322 Problem: clangd currently receives incorrect languageId values for objc, objcpp and cuda. Solution: Update the filetype to languageId mapping to send the values expected by the language server. ref https://code.visualstudio.com/docs/languages/identifiers --- lsp/clangd.lua | 4 ++++ 1 file changed, 4 insertions(+) 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 = {