Releases: kakoune-lsp/kakoune-lsp
Releases · kakoune-lsp/kakoune-lsp
v5.1.1
v5.1.0
v5.0.0
v4.0.0
BREAKING changes:
- no need to execute
lsp-start
inkakrc
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 putlsp-auto-hover-enable
tokakrc
afterkak-lsp --kakoune
invocationeditor.zero_char_completion
option was removed and completion trigger is now configurable. Setlsp_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
andDiagnosticError
faces instead ofInformation
andError
. By defaultDiagnosticWarning
is set to yellow foreground andDiagnosticError
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
tokakrc
afterkak-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 onlsp_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 inrc/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 afiletype=make
buffer - initialize request sets
documentationFormat = plaintext
client capability to ask server for plaintext documentation for completion items
v4.0.0-rc.2
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 onlsp_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 inrc/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
BREAKING changes:
editor.hover
option was removed and auto-hover is now disabled by default. To enable it back putlsp-auto-hover-enable
tokakrc
afterkak-lsp --kakoune
invocationeditor.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
andDiagnosticError
faces instead ofInformation
andError
. By defaultDiagnosticWarning
is set to yellow foreground andDiagnosticError
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 addlsp-stop-on-exit-disable
tokakrc
afterkak-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
v3.6.1
v3.6.0
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.