nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

plugins/lsp: nvim 0.10 inlay hints option

Open MattSturgeon opened this issue 1 year ago • 0 comments

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?)
  • [ ] 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

MattSturgeon avatar Mar 23 '24 19:03 MattSturgeon