svenstaro / glsl-language-server

Language server implementation for GLSL
MIT License
177 stars 29 forks source link

Configuration for Vulkan #22

Closed Mirkopoj closed 1 year ago

Mirkopoj commented 1 year ago

Fist of all, congratulation on this great tool.

I'm writing some vulkan shaders and get some lsp errors saying:

'<some-feature>' : only allowed when using GLSL for Vulkan

Is there a way to tell the lsp that I'm indeed using GLSL for Vulkan, similar to compile_flags.txt for clangd based lsp?

Thank you in advance.

Mirkopoj commented 1 year ago

https://github.com/svenstaro/glsl-language-server/compare/master...pudnax:glsl-language-server:master

Found a fork that solves it.

svenstaro commented 1 year ago

This doesn't really fix it here though, does it? We shouldn't settle for forks. The work should be upstreamed so that others won't be confused.