Open w23 opened 1 year ago
mason: https://github.com/sheerun/vim-polyglot/blob/bc8a81d3592dab86334f27d1d43c080ebf680d42/autoload/polyglot/init.vim#L2221
mason
glsl: https://github.com/sheerun/vim-polyglot/blob/bc8a81d3592dab86334f27d1d43c080ebf680d42/autoload/polyglot/init.vim#L2350
glsl
I edit *.comp files as GLSL compute shaders, and was rather surprised when they were not highlighted properly due to having mason filetype.
*.comp
The workaround is to add perl into polyglot_disable global variable, as mason registration happens under "perl is not disabled" condition.
perl
polyglot_disable
But I wonder what is a proper way to fix it.
mason
: https://github.com/sheerun/vim-polyglot/blob/bc8a81d3592dab86334f27d1d43c080ebf680d42/autoload/polyglot/init.vim#L2221glsl
: https://github.com/sheerun/vim-polyglot/blob/bc8a81d3592dab86334f27d1d43c080ebf680d42/autoload/polyglot/init.vim#L2350I edit
*.comp
files as GLSL compute shaders, and was rather surprised when they were not highlighted properly due to havingmason
filetype.The workaround is to add
perl
intopolyglot_disable
global variable, asmason
registration happens under "perl is not disabled" condition.But I wonder what is a proper way to fix it.
*.comp
even a valid/common file extension formason
, whatever that is?