Skip to content

Commit eea95b7

Browse files
authored
fix(lsp): return valid async command results (#31)
Map successful nil command results to vim.NIL. Neovim requires a result or error for client command requests.
1 parent 98c6ff1 commit eea95b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lua/spring_boot.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ M.init_lsp_commands = function()
3636
if fn then
3737
local ok, result = pcall(fn, params.arguments, ctx)
3838
if ok then
39-
return result
39+
return result == nil and vim.NIL or result
4040
else
4141
return vim.lsp.rpc_response_error(vim.lsp.protocol.ErrorCodes.InternalError, result)
4242
end

0 commit comments

Comments
 (0)