Skip to content

Add link to Civet LSP - #2929

Merged
rchl merged 1 commit into
sublimelsp:mainfrom
edemaine:civet-link
May 25, 2026
Merged

rchl merged 1 commit into
sublimelsp:mainfrom
edemaine:civet-link

Conversation

@edemaine

Copy link
Copy Markdown
Contributor

Civet is a language that compiles to TypeScript. We just tested Civet's LSP in Sublime; see these demo screens. So thought it might help to add to this list.

@netlify

netlify Bot commented May 24, 2026

Copy link
Copy Markdown

βœ… Deploy Preview for sublime-lsp ready!

Name Link
πŸ”¨ Latest commit 771e47b
πŸ” Latest deploy log https://app.netlify.com/projects/sublime-lsp/deploys/6a137dd64aa8520007be68ca
😎 Deploy Preview https://deploy-preview-2929--sublime-lsp.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@rchl

rchl commented May 24, 2026 •

Copy link
Copy Markdown
Member

Note that instructions mention deprecated way of configuring clients using global LSP preferences. There is now a dedicated file for those - https://lsp.sublimetext.io/client_configuration/

@edemaine

Copy link
Copy Markdown
Contributor Author

Sorry, I'm new to Sublime. What are the recommended instructions? Or if you can point me to an example, I can adapt.


## Civet

Follow installation instructions in the [Civet Sublime Text package](https://github.com/DanielXMoore/Civet/tree/main/lsp/sublime).

@rchl rchl May 24, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say that the Civet Sublime Text package phrasing is a bit unfortunate because it's not providing any package. In ST packages are things that you can install directly in the editor using its Package Control package manager.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/DanielXMoore/Civet/tree/main/lsp/sublime is providing a package in the sense that it's installable into the Packages directory of Sublime. We haven't gotten to Package Control listing yet because it's apparently not compatible with our monorepo layout...

Are you objecting to the link title or the description in our README?

@rchl rchl May 25, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a correct package even. You can't ship it and expect that your configuration will be merged with what is already present in LSP.sublime-settings. In fact I'm not even sure what will happen but I guess it will either overwrite the original LSP.sublime-settings or do nothing. Both of which would be unexpected.

You should either just have instructions on how to add the server configuration to Preferences: LSP Server Configurations manually (probably easiest for now) or create a dedicated package with its own configuration (you have tons of examples in https://github.com/sublimelsp) but those are not just configurations but also include a bit of plugin code.

@edemaine edemaine May 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the Preferences documentation are updated according to your comments in a PR linked below (under review).

This package does do something: it provides syntax highlighting.

@rchl rchl May 25, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This package does do something: it provides syntax highlighting.

But then it most likely overrides the whole clients object so that all servers that the user has defined won't work anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. That's recommended configuration (.example), not part of the package.

  2. It'll be fixed once Modernize docs for Sublime LSP setupΒ DanielXMoore/Civet#2116 is merged.

Unless I missed something?

@rchl rchl May 25, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I understand everything now and the changes here look fine.

I've missed before that the package provides syntax highlighting because there is no actual syntax file in there. I see that the process to get things built is a bit complex but I understand that it's just the state of things for now.

@rchl

rchl commented May 24, 2026 •

Copy link
Copy Markdown
Member

Sorry, I'm new to Sublime. What are the recommended instructions? Or if you can point me to an example, I can adapt.

I did link to instructions.
Specifically:

After you have installed a language server, LSP needs to be configured to enable communication between LSP and that server for suitable filetypes. Your server configurations file is stored at Packages/User/LanguageServers.sublime-settings and can be opened via "Preferences > Package Settings > LSP > Server Configurations" from the menu or with the Preferences: LSP Server Configurations entry from the Command Palette.

So client settings no longer go into Package Settings β†’ LSP β†’ Settings like the instructions say.
And in that file there no longer is a root clients key. The server's name is now the root key.

@rchl
rchl merged commit d2489ec into sublimelsp:main May 25, 2026
4 checks passed
@edemaine

Copy link
Copy Markdown
Contributor Author

Sorry it was confusing. Thanks for all the quick feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants