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
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 }
Then, you can use the lsp-diag-hover-enable and lsp-diag-hover-disable
commands to control the plugin.
If you wish, you can see the contents of 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.
Feel free to write your own version and add it to your kakrc.
Invoking the command with the --no-static option will not print the static
content for evaluation by Kakoune. However, note that the diagpipe_in and
diagpipe_out options are always printed.
Release files for kak-lsp-diags 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kak_lsp_diags-1.1.2.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kak_lsp_diags-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:12.7 kB
Release files / kak_lsp_diags-1.1.2.tar.gz
| Download URL | kak_lsp_diags-1.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2adbdd8a0fb8490c89442b247fc74886373eab34090dac99decca92d42f1d20
|
|
BLAKE2b-256 checksum How to use checksums |
415c7683403159abea1497248047f22f992a79423afae494689370ef387fde5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / kak_lsp_diags-1.1.2-py3-none-any.whl
| Download URL | kak_lsp_diags-1.1.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4433672f117658aa5ecf7060ff8a574ae8980b164df3b555a48a5ca99cf9551d
|
|
BLAKE2b-256 checksum How to use checksums |
68e53ba929bcf58f039ec36124663efffac36d96022fd1184dcc07a502a9c2b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|