-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for the new builtin inlay hints
Enable with: ```lua {"neovim/nvim-lspconfig", opts = {inlay_hints = {enabled = true}}} ```
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01c7eee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somehow I cannot make it work.
01c7eee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requires nightly neovim, and you have to configure the LSP adapter to include inlay-hints (e.g. for rust-tools https://github.com/simrat39/rust-tools.nvim#configuration)
01c7eee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check my config for setting up inlay hints for tsserver and lua_ls. Although for lua_ls I disable most:
https://github.com/folke/dot/blob/194946c1103c6aa6040a6d387aa895345feea3e3/nvim/lua/plugins/lsp.lua#L69
01c7eee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks guys. Regarding nigthly I think this PR added inline hints neovim/neovim#23984