kakoune-lsp/kakoune-lsp

--request: print the action to do instead of doing it

Open

#428 opened on Dec 22, 2020

 (3 comments) (0 reactions) (0 assignees)Rust (131 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (695 stars)
PR merge metrics
 (PR metrics pending)

Description

If I run

printf 
session   = "1234"
client    = "client0"
buffile   = "foo.py"
filetype  = "python"
version   = 1
method    = "textDocument/definition"
[params.position]
line      = 5
column    = 1 | kak-lsp -s 1234 --request

It automatically trigger an action ( jump to definition in this example ) in the kakoune client

How can I just get the string of the action to perform, without triggering it yet. The goal is to run some logic and trigger the action latter with eval $action ?

Contributor guide