Skip to content

Releases: kakoune-lsp/kakoune-lsp

v5.1.1

24 Jul 06:02
@ul ul
Compare
Choose a tag to compare
fix textDocument/formatting

v5.1.0

22 Jul 00:07
@ul ul
Compare
Choose a tag to compare
textDocument/formatting

v5.0.0

11 Jul 00:28
@ul ul
Compare
Choose a tag to compare

This release adapts integration with Kakoune to the latest breaking changes in the editor (big shout-out to @mawww for submitting PR). Therefore to use it you should upgrade Kakoune and also change kakrc:

- %sh{kak-lsp --kakoune -s $kak_session}
+ eval %sh{kak-lsp --kakoune -s $kak_session}

v4.0.0

30 Jun 05:30
@ul ul
Compare
Choose a tag to compare

BREAKING changes:

  • no need to execute lsp-start in kakrc because making request will spin up server if it was down
  • editor.hover option was removed and auto-hover is now disabled by default. To enable it back put lsp-auto-hover-enable to kakrc after kak-lsp --kakoune invocation
  • editor.zero_char_completion option was removed and completion trigger is now configurable. Set lsp_completion_trigger option to be any command which would fail when completions request is not needed. Default is to fail when preceding character is a whitespace
  • inline diagnostics now use DiagnosticWarning and DiagnosticError faces instead of Information and Error. By default DiagnosticWarning is set to yellow foreground and DiagnosticError is set to red foreground
  • request to stop associated kak-lsp session is sent on end of Kakoune session by default. To keep kak-lsp session on Kakoune session end add lsp-stop-on-exit-disable to kakrc after kak-lsp --kakoune invocation

Other improvements:

  • set global lsp_hover_anchor true makes hover info to be displayed anchored to hovered position
  • added docstrings for commands
  • added lsp-capabilities command to show which commands are backed by language capabilities of the current buffer filetype
  • language server errors are now reported back to editor both in *debug* buffer and info box
  • info is shown if language server was not initialized yet
  • added lsp-inline-diagnostics-{enable,disable} commands to toggle inline diagnostics
  • added lsp-stop command to shutdown associated kak-lsp session from within Kakoune
  • lsp-auto-hover-insert-mode-enable command allows to have hover info in insert mode. It relies on lsp_hover_insert_mode_trigger option which contains command which should move draft cursor to the position where hover is to be requested. By default it tries to retrieve current function signature by looking for opening parenthesis and fails if any closing parenthesis is between opening one and cursor
  • rendering most of the information back to editor is now abstracted with Kakoune commands, which makes them ultimately customizable (see lsp-show-... commands in rc/lsp.kak for the reference)
  • added lsp-signature-help command to request signature help from language server
  • added lsp-document-symbol command to display buffer with current buffer's symbols
  • references are now collected in more efficient manner (shout out to @Pantoofle)
  • when config is not found, no warning is issued about loading default config anymore (this message was breaking integration with Kakoune)
  • $ is no longer escaped in completions (thanks @JJK96)
  • individual hover entries start with bullets
  • publish *diagnostics* as a filetype=make buffer
  • initialize request sets documentationFormat = plaintext client capability to ask server for plaintext documentation for completion items

v4.0.0-rc.2

15 Jun 23:31
@ul ul
Compare
Choose a tag to compare
v4.0.0-rc.2 Pre-release
Pre-release

Changes since rc.1:

  • Completion trigger is now configurable. Set lsp_completion_trigger option to be any command which would fail when completions request is not needed. Default is to fail when preceding character is a whitespace
  • lsp-auto-hover-insert-mode-enable command allows to have hover info in insert mode. It relies on lsp_hover_insert_mode_trigger option which contains command which should move draft cursor to the position where hover is to be requested. By default it tries to retrieve current function signature by looking for opening parenthesis and fails if any closing parenthesis is between opening one and cursor
  • Rendering most of the information back to editor is now abstracted with Kakoune commands, which makes them ultimately customizable (see lsp-show-... commands in rc/lsp.kak for the reference)
  • Added lsp-signature-help command to request signature help from language server
  • Added lsp-document-symbol command to display buffer with current buffer's symbols
  • References are now collected in more efficient manner (shout out to @Pantoofle)
  • Default timeout is reverted back to 30 minutes
  • When config is not found, no warning is issued about loading default config anymore (this message was breaking integration with Kakoune)

v4.0.0-rc.1

07 Jun 03:14
@ul ul
Compare
Choose a tag to compare
v4.0.0-rc.1 Pre-release
Pre-release

BREAKING changes:

  • editor.hover option was removed and auto-hover is now disabled by default. To enable it back put lsp-auto-hover-enable to kakrc after kak-lsp --kakoune invocation
  • editor.zero_char_completion option was removed and completion trigger is just a little bit smarter now: it doesn't request autocompletion for whitespace
  • inline diagnostics now use DiagnosticWarning and DiagnosticError faces instead of Information and Error. By default DiagnosticWarning is set to yellow foreground and DiagnosticError is set to red foreground
  • kak-lsp session timeout is now disabled by default and request to stop associated kak-lsp session is sent on end of Kakoune session. To set timeout back please refer kak-lsp.toml. To keep kak-lsp session on Kakoune session end add lsp-stop-on-exit-disable to kakrc after kak-lsp --kakoune invocation

Other improvements:

  • set global lsp_hover_anchor true makes hover info to be displayed anchored to hovered position
  • added docstrings for commands
  • added lsp-capabilities command to show which commands are backed by language capabilities of the current buffer filetype
  • language server errors are now reported back to editor both in *debug* buffer and info box
  • info is shown if language server was not initialized yet
  • added lsp-inline-diagnostics-{enable,disable} commands to toggle inline diagnostics
  • added lsp-stop command to shutdown associated kak-lsp session from within Kakoune

v3.7.0

01 Jun 05:35
@ul ul
Compare
Choose a tag to compare
Report language server errors

v3.6.1

30 May 07:50
@ul ul
Compare
Choose a tag to compare
Bugfix release

v3.6.0

29 May 22:56
@ul ul
Compare
Choose a tag to compare

This release brings support for communication via unix sockets and for sessions based on them.
You can continue to use TCP mode if it works for you better, but generally we encourage to migrate to unix sockets for reasons described in #36.

To migrate to session-based mode you need to update kakrc:

-%sh{kak-lsp --kakoune}
+%sh{kak-lsp --kakoune -s $kak_session}
+lsp-start

Also you need to disable launchd or systemd service to prevent extra instance listening for TCP from hanging around.

Note that we are still trying to figure out what is the best way to restart kak-lsp in that mode,
meanwhile you can execute :lsp-start in Kakoune to restart kak-lsp if you notice that it crashed.

v3.5.0

23 May 00:05
@ul ul
Compare
Choose a tag to compare
  • :lsp-diagnostics are now available to render all diagnostics for current buffer project and language (#37)