I am trying to make a YCM vim plugin to work with CUDA source files. Since CUDA is basically C ++ syntax with some extensions, I thought editing a standard .ycm_extra_conf.py file would be enough. I changed the line
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm']
to
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm', '.cu' ]
and line
return extension in [ '.h', '.hxx', '.hpp', '.hh']
to
return extension in [ '.h', '.hxx', '.hpp', '.hh', '.cuh' ]
But YCM does not work, it does not even ask me to use the configuration file, as in the beginning. In normal C / C ++ source files, YCM works correctly.
Any ideas what is missing?
source share