Skip to content

feat(glint): add vim.lsp.config support #3911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

justmejulian
Copy link
Contributor

Saw this one was still missing in the list in #3705.

I tested it by creating a new ember ts project -> ember new my-typescript-app --typescript
then adding glint to that project -> npm install --save-dev @glint/core

Per default we use the project local glint-language-server, but the user can also choose to use a globally installed version.

Based on lua/lspconfig/configs/glint.lua

Comment on lines +41 to +43
config.cmd = {
'exec',
root_dir .. '/node_modules/.bin/glint-language-server',
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this will do what is expected. before_init happens after the server was starting.

If cmd needs to be dynamic it must be defined as a function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah you are right. Looks like it just changed the config, but it did not have an effect.

@justinmk justinmk merged commit 6a6abe2 into neovim:master Jun 17, 2025
6 checks passed
@justinmk
Copy link
Member

Might need an improvement as mentioned above, but can be a followup if you find the inspiration :)

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