C/C++ LSP doesn't grey out or otherwise indicate sections disabled by preprocessor #11577
-
When using the clangd LSP with Neovim I'm able to see that sections of code that are disabled by the preprocess are disabled. One example that I hit is However, in Helix this section appears the same as any other code, except the LSP doesn't work and it's not obvious what's going on without manually searching through the file. Notably this does require using the LSP for highlighting, Tree-sitter or similar alone are not enough (though theoretically that could not be made to work) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
duplicate of #5589 altough clangd could just add diagnostics with the disabled tag like rust-analyzer does which would be much clearer and broader supported. In general we do not w3ant to support full lsp highlighting helix is first and foremost tree-sitter based editor |
Beta Was this translation helpful? Give feedback.
duplicate of #5589
altough clangd could just add diagnostics with the disabled tag like rust-analyzer does which would be much clearer and broader supported.
In general we do not w3ant to support full lsp highlighting helix is first and foremost tree-sitter based editor