SuperCollider VSCode / Language Server Protocol support

@madskjeldgaard Great to see that you’re working towards lsp-config integration!

It is also possible to add servers to lsp-config without forking the repo, instead you could add something like this to your Neovim config:

local lsp = require'lspconfig'
local configs = require'lspconfig.configs'

if not lsp.supercollider then
  configs.supercollider = {
    default_config = {
      cmd = {''};
      filetypes = {'supercollider'};
      root_dir = function(fname)
        return vim.fn.getcwd()
      end;
    };
    settings = {};
    docs = {
      package_json = '';
      description = [[]];
      default_config = {
        root_dir = [[]];
      };
    };
  }
end

lsp.supercollider.setup{}
2 Likes