With lspconfig, is there a way to configure it to ignore attaching to buffers with a a certain scheme? Only discussion I’ve seen from similar topics is disabling in node_modules, which involves some autocmds to stop an (or all) LSP client entirely.
I need this as I’m finishing up distant.nvim, which uses a name scheme of
distant://path/to/file on buffers referencing files being managed on a remote machine. I’m able to also speak with remote LSP servers, but the problem is that an LSP server is started locally because the filetype is recognized for my local config.
distant://path/to/file.rs starts a local
rust-analzyer server alongside my remote version that I’ve configured to start and attach to buffers with
distant:// as the scheme.