Kakoune plugin for LSP hover diagnostics
Project description
Kakoune LSP Diagnostics Hover
This plugin integrates with [kakoune-lsp] to provide better hover support for inline diagnostics. It has a single function: to show inlay diagnostics only when the cursor is on an inline diagnostic.
In other words, if the cursor is over an error (the part underlined in red), the diagnostic's text will be displayed at the end of the line. As soon as the cursor is moved, the text clears.
Installation
kak-lsp-diags is available as a package on PyPI. You can install it with your
favorite python package manager:
uv tool install kak-lsp-diags
Alternatively; because the script has no dependencies, you may download
kak_lsp_diags.py, make it executable, and add it to your $PATH.
Usage
Invoking the kak-lsp-diags command outputs necessary Kakoune commands and
starts a daemon. To use the plugin, add the following to your kakrc:
evaluate-commands %sh{ kak-lsp-diags }
If you wish, you can see the contents of static.kak (the injected commands)
without starting the server:
kak-lsp-diags --print-static
Advanced Usage
Some users may want to customize what happens when the cursor hovers & leaves a
diagnostic. In this case, you'll need to replace the commands injected by the
plugin. To reference what's currently executed, use the --print-static flag,
or see static.kak in this repository. Feel free to write your own version and
add it to your kakrc.
Invoking the command with the --no-static option will not print
static.kak for evaluation by Kakoune. However, note that the diagpipe_in and
diagpipe_out options are always declared.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kak_lsp_diags-1.0.0.tar.gz.
File metadata
- Download URL: kak_lsp_diags-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a4874b109bbd93732e9df969ff52e8366f63ffc88e52c3905f9927d27a8e7d
|
|
| MD5 |
df860ee5121265db3b3c23920e72c895
|
|
| BLAKE2b-256 |
2409bb23417e33d03eff733a55b09bbba58fd1c8e3155c5f3b9e187874a340c4
|
File details
Details for the file kak_lsp_diags-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kak_lsp_diags-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e98964e7822ecf0e854c5044c0850d8537d1a75771219f0bdeb14e948a1b4879
|
|
| MD5 |
72858a476759f34c6fc00eafbaea3e63
|
|
| BLAKE2b-256 |
7f5be6ed79993a4e494b5cf172b3e315da2246672707d8bc75391e74034ba62e
|