mirror of
https://github.com/neovim/nvim-lspconfig.git
synced 2026-05-05 16:46:11 +02:00
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
This commit is contained in:
parent
5a855bcfec
commit
cfc12beefe
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user