You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual.adoc
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -427,6 +427,40 @@ Then click on apply, and restart the LSP server for your rust project.
427
427
428
428
https://gitlab.com/cppit/jucipp[juCi++] has built-in support for the language server protocol, and since version 1.7.0 offers installation of both Rust and rust-analyzer when opening a Rust file.
429
429
430
+
=== Kakoune
431
+
432
+
https://kakoune.org/[Kakoune] editor support LSP with the help of https://github.com/kak-lsp/kak-lsp[`kak-lsp`].
433
+
Follow the https://github.com/kak-lsp/kak-lsp#installation[instructions] to install `kak-lsp`.
434
+
To configure `kak-lsp`, refer to the https://github.com/kak-lsp/kak-lsp#configuring-kak-lsp[configuration section] which is basically about copying the https://github.com/kak-lsp/kak-lsp/blob/master/kak-lsp.toml[configuration file] in the right place (latest versions should use `rust-analyzer` by default).
435
+
436
+
Finally, you need to configure Kakoune to talk to `kak-lsp` (see https://github.com/kak-lsp/kak-lsp#usage[Usage section]).
437
+
A basic configuration will only get you LSP but you can also activate inlay diagnostics and auto-formatting on save.
438
+
The following might help you get all of this.
439
+
440
+
[source,txt]
441
+
----
442
+
eval %sh{kak-lsp --kakoune -s $kak_session} # Not needed if you load it with plug.kak.
0 commit comments