https://github.com/llllvvuu/interactive-inlay.nvim
PROOF-OF-CONCEPT DO NOT USE
https://github.com/llllvvuu/interactive-inlay.nvim
Last synced: 8 months ago
JSON representation
PROOF-OF-CONCEPT DO NOT USE
- Host: GitHub
- URL: https://github.com/llllvvuu/interactive-inlay.nvim
- Owner: llllvvuu
- Created: 2023-10-05T12:47:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T03:01:59.000Z (about 2 years ago)
- Last Synced: 2024-04-15T05:02:50.556Z (over 1 year ago)
- Language: Lua
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> ⚠️ **DO NOT USE - Requires an [extension to Neovim core](https://github.com/neovim/neovim/pull/25512)**
> 🚧 **WIP** 🚧
Access tooltips and code actions from inlay hints.

## Installation
### [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
"llllvvuu/interactive-inlay.nvim",
keys = {
-- change if you use H/M/L
{ "H", require("interactive-inlay").inlay_tooltip_at_cursor_word }
}
}
```
## Roadmap
### Selection Options
- [ ] word
- [ ] WORD
- [ ] node
- [ ] textobject
- [ ] smart
- [ ] line
- [ ] visible_area
- [ ] buffer
- [ ] workspace
### Native Neovim UI
- [x] open first label part in `vim.lsp.util.open_floating_preview`
- [ ] pick and execute `command` with `vim.ui.select`
- [ ] pick and execute `command` from floating preview
- [ ] jump to `location` from floating preview
- [ ] apply `textEdits` from floating preview
- [ ] open `loclist` with `label[].location`s
### Telescope extension
Label Part Preview:
- [ ] Parent's tooltip
- [ ] Diff preview of parent's `textEdits` (like actions-preview.nvim)
- [ ] `label[].text`
- [ ] `label[].command` ("Command Available: {command}")
- [ ] `textDocument/hover` at the `label[].location`
Actions:
- [ ] `` to jump
- [ ] `` to apply `textEdits`
- [ ] `` to apply `command`
### Navigation
- [ ] `]i`, `[i`
- [ ] leap.nvim
### Mouse Support
- [ ] `` to jump
- [ ] Mouse hover to show floating preview