Skip to main content

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

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.

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

kak_lsp_diags-1.1.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kak_lsp_diags-1.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file kak_lsp_diags-1.1.2.tar.gz.

File metadata

  • Download URL: kak_lsp_diags-1.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for kak_lsp_diags-1.1.2.tar.gz
Algorithm Hash digest
SHA256 e2adbdd8a0fb8490c89442b247fc74886373eab34090dac99decca92d42f1d20
MD5 101539717435134223e89a2a7c1e774f
BLAKE2b-256 415c7683403159abea1497248047f22f992a79423afae494689370ef387fde5b

See more details on using hashes here.

File details

Details for the file kak_lsp_diags-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: kak_lsp_diags-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for kak_lsp_diags-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4433672f117658aa5ecf7060ff8a574ae8980b164df3b555a48a5ca99cf9551d
MD5 8757396c39ab180bd22ca589d08bf604
BLAKE2b-256 68e53ba929bcf58f039ec36124663efffac36d96022fd1184dcc07a502a9c2b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page