LSP support in injected code blocks with Otter.nvim
Otter.nvim makes it possible to attach LSPs to embedded code blocks. For example, inside JavaScript/TypeScript files, you can use tagged template literals:
const frag = glsl`
void main() {
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}
`;