nixvim
nixvim copied to clipboard
plugins/lsp: nvim 0.10 inlay hints option
Adds an option to enable neovim 0.10's new LSP inlay hints, on supported language servers.
Also adds a new (read-only) option that exposes nvim's version as reported by nvim --version. This will be needed for version-specific warnings/assertions because lib.getVersion does not return a useful version for nightly builds.
- [x] Basic inlay hint support (
plugins.lsp.inlayHints) - [ ] Tests
- [ ]
versionAtLeast "0.10.0"warning (or assertion?) - [x] Access nightly nvim version (can't use
lib.getVersion) - [ ] Consider how/if this can be configured for a specific LSP
- [ ] Consider whether this impacts existing options (should they be deprecated?)
- [ ]
plugins.clangd-extensions.inlayHints - [ ]
plugins.rust-tools.inlayHints - [ ]
plugins.lsp.servers.rust-analyzer.settings.inlayHints - [ ] Alternatively, maybe those LSPs having an option is preferable to having a global option?
- [ ]
- [ ] Consider how/if we should expose more advanced functionality
- [ ] Enable only in specific modes
- [ ] Enable for the current line
- [ ] Etc
Pushing this draft PR for early feedback/testing, ~~and also in-case I loose interest, someone else can continue the work...~~ :eyes:
Closes #1306