Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Add kak-tree-sitter-req-nav. #273
Browse files Browse the repository at this point in the history
  • Loading branch information
hadronized committed Apr 21, 2024
1 parent 0e2562c commit 1bad60f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kak-tree-sitter/rc/static.kak
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ define-command kak-tree-sitter-req-object-text-objects -params 1 %{
}
}

# Send a single request to modify selections with tree-sitter navigation.
define-command kak-tree-sitter-req-nav -params 1 %{
evaluate-commands -no-hooks %{
echo -to-file %opt{kts_cmd_fifo_path} -- "{ ""type"": ""nav"", ""client"": ""%val{client}"", ""buffer"": ""%val{bufname}"", ""lang"": ""%opt{kts_lang}"", ""selections"": ""%val{selections_desc}"", ""dir"": ""%arg{1}"" }"
write %opt{kts_buf_fifo_path}
}
}

# Enable highlighting for the current buffer.
#
# This command does a couple of things, among removing the « default » highlighting (Kakoune based) of the buffer and
Expand Down

0 comments on commit 1bad60f

Please sign in to comment.