Skip to content

docs: Add command configuration for ty in neovim#2762

Closed
joelostblom wants to merge 3 commits intoastral-sh:mainfrom
joelostblom:patch-1
Closed

docs: Add command configuration for ty in neovim#2762
joelostblom wants to merge 3 commits intoastral-sh:mainfrom
joelostblom:patch-1

Conversation

@joelostblom
Copy link
Copy Markdown
Contributor

Summary

For me, ty does not work in neovim unless I specify to run the server command in the config. Adding it to the docs might be helpful for first time users.

@BurntSushi
Copy link
Copy Markdown
Member

Hmmm this shouldn't be necessary if you're using nvim-lspconfig, which specifies cmd for you.

@joelostblom
Copy link
Copy Markdown
Contributor Author

joelostblom commented Feb 10, 2026

Yes, but the docs only mention to use nvim-lspconfig with neovim 0.10. For 0.11+, the native vim.lsp.config is mentioned, which does not contain a ty configuration natively.

Instead of adding a lspconfig recommendation also for 0.11+, I think it would be helpful to show the required lsp command for those who don't want to use neovim's native lsp capabilities without installing a separate plugin.

Copy link
Copy Markdown
Member

@dhruvmanila dhruvmanila left a comment

Choose a reason for hiding this comment

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

Yeah, I think you're correct if you don't have nvim-lspconfig.

@dhruvmanila dhruvmanila added the documentation Improvements or additions to documentation label Feb 10, 2026
@BurntSushi
Copy link
Copy Markdown
Member

I'm not sure we should be optimizing the docs for the case where nvim-lspconfig isn't being used. I'd rather the docs target nvim-lspconfig to keep things simpler (particularly if and when the ty config innvim-lspconfig gets more complicated). For users looking to keep things lean and not use any plugins, I think they can go to nvim-lspconfig and copy the configuration from there.

I say this because some of the configs can be rather complicated. I don't know if ty's will ever get to that level, but if it does, I'd rather just point folks toward nvim-lspconfig instead of reproducing a complex config in our docs.

@dhruvmanila
Copy link
Copy Markdown
Member

I'm not sure we should be optimizing the docs for the case where nvim-lspconfig isn't being used. I'd rather the docs target nvim-lspconfig to keep things simpler (particularly if and when the ty config innvim-lspconfig gets more complicated). For users looking to keep things lean and not use any plugins, I think they can go to nvim-lspconfig and copy the configuration from there.

I say this because some of the configs can be rather complicated. I don't know if ty's will ever get to that level, but if it does, I'd rather just point folks toward nvim-lspconfig instead of reproducing a complex config in our docs.

That seems reasonable, I'll close this out.

@joelostblom
Copy link
Copy Markdown
Contributor Author

That makes sense! Maybe it's still possible to clarify the text a bit to highlight that nvim-lspconfig is recommended also for Neovim >=0.11? I made a suggestion in #2785 as a continuation of this PR

BurntSushi added a commit that referenced this pull request Feb 11, 2026
…in all version of Neovim (#2785)

## Summary

Continuation of #2762. This PR
clarifies that nvim-lspconfig is recommended for any version of Neovim
and lists the configuration for Neovim >=0.11 first since nvim-lspconfig
support for Neovim <0.11 is being deprecated.

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: Andrew Gallant <jamslam@gmail.com>
Co-authored-by: Andrew Gallant <andrew@astral.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants