Update kak-tree and config
This commit is contained in:
parent
f52f28b84e
commit
0ddfd25c7b
|
@ -87,11 +87,11 @@ tree-always-highlight
|
||||||
set-option global tree_highlight_style ",rgb:404040"
|
set-option global tree_highlight_style ",rgb:404040"
|
||||||
declare-user-mode tree
|
declare-user-mode tree
|
||||||
map global normal 't' ":enter-user-mode tree<ret>"
|
map global normal 't' ":enter-user-mode tree<ret>"
|
||||||
|
map global normal '<tab>' ":enter-user-mode tree<ret>"
|
||||||
map global normal 'T' ":enter-user-mode -lock tree<ret>"
|
map global normal 'T' ":enter-user-mode -lock tree<ret>"
|
||||||
|
|
||||||
map -docstring "select node" global tree 'n' ":tree-select-node<ret>"
|
map -docstring "select node" global tree 'n' ":tree-select-node<ret>"
|
||||||
map -docstring "select parent" global tree 'k' ":tree-select-parent-node<ret>"
|
map -docstring "select parent" global tree 'k' ":tree-select-parent-node<ret>"
|
||||||
# map -docstring "select children" global tree 'c' ":tree-select-children<ret>"
|
|
||||||
map -docstring "select children" global tree 'C' ":tree-select-children<ret>"
|
map -docstring "select children" global tree 'C' ":tree-select-children<ret>"
|
||||||
map -docstring "select children of type" global tree 'c' ":enter-user-mode tree-children<ret>"
|
map -docstring "select children of type" global tree 'c' ":enter-user-mode tree-children<ret>"
|
||||||
map -docstring "select next node of type" global tree 'l' ":enter-user-mode tree-next<ret>"
|
map -docstring "select next node of type" global tree 'l' ":enter-user-mode tree-next<ret>"
|
||||||
|
@ -104,13 +104,18 @@ declare-user-mode tree-children
|
||||||
declare-user-mode tree-next
|
declare-user-mode tree-next
|
||||||
declare-user-mode tree-prev
|
declare-user-mode tree-prev
|
||||||
|
|
||||||
|
map global normal 'f' ":enter-user-mode tree-next<ret>"
|
||||||
|
map global normal 'F' ":enter-user-mode tree-children<ret>"
|
||||||
|
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
echo "i,identifier
|
echo "i,identifier
|
||||||
f,function
|
t,type
|
||||||
d,declaration
|
|
||||||
c,call
|
c,call
|
||||||
a,arguments
|
a,arguments
|
||||||
s,statement" |
|
s,statement
|
||||||
|
d,declaration
|
||||||
|
n,number
|
||||||
|
\",string" |
|
||||||
while IFS=, read -r cmd group ; do
|
while IFS=, read -r cmd group ; do
|
||||||
echo "map -docstring '$group child' global tree-children '$cmd' ':tree-select-children $group<ret>'"
|
echo "map -docstring '$group child' global tree-children '$cmd' ':tree-select-children $group<ret>'"
|
||||||
echo "map -docstring 'next $group' global tree-next '$cmd' ':tree-select-next-node $group<ret>'"
|
echo "map -docstring 'next $group' global tree-next '$cmd' ':tree-select-next-node $group<ret>'"
|
||||||
|
@ -118,6 +123,7 @@ while IFS=, read -r cmd group ; do
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#TODO
|
#TODO
|
||||||
# map global user '&' ':qhl-word<ret>' -docstring "Highlight current word"
|
# map global user '&' ':qhl-word<ret>' -docstring "Highlight current word"
|
||||||
# map global user '"' ':unqhl<ret>' -docstring "Remove highlight"
|
# map global user '"' ':unqhl<ret>' -docstring "Remove highlight"
|
||||||
|
|
|
@ -333,11 +333,11 @@
|
||||||
"tree-sitters": "tree-sitters"
|
"tree-sitters": "tree-sitters"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699826096,
|
"lastModified": 1699828151,
|
||||||
"narHash": "sha256-cLD24AUAc/vqWIty1bxA7q2qc8AWEwyCrdsOk0glKKI=",
|
"narHash": "sha256-JI+tkQbzm1u3CYrPWNRHZupQx8rk8BpdeyAFDD6cNvY=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "6e6ad7a82b0dc4142f4db2c06a0a80f1c1ca151a",
|
"rev": "2c17cea19ee8d2b93f48e619b59912b1e5dc0ca0",
|
||||||
"revCount": 11,
|
"revCount": 14,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://githug.xyz/xenia/kak-tree.git"
|
"url": "https://githug.xyz/xenia/kak-tree.git"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user