aboutsummaryrefslogtreecommitdiff
path: root/autoload/surround.kak
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-11-05 21:56:06 +0530
committerAkshay Nair <phenax5@gmail.com>2025-11-09 12:02:10 +0530
commit73a9be025659a9b36a9284e160a9aee995db5314 (patch)
tree8b6caa34e2f4795e09779ff006b1e182d7ecde8d /autoload/surround.kak
parent17b59f5ed7acac5dc852c831e1650daac7f169d7 (diff)
downloadkakoune-config-73a9be025659a9b36a9284e160a9aee995db5314.tar.gz
kakoune-config-73a9be025659a9b36a9284e160a9aee995db5314.zip
Add some buffer keys and buffers-show command
Diffstat (limited to 'autoload/surround.kak')
-rw-r--r--autoload/surround.kak17
1 files changed, 17 insertions, 0 deletions
diff --git a/autoload/surround.kak b/autoload/surround.kak
index 2df301c..3ce248d 100644
--- a/autoload/surround.kak
+++ b/autoload/surround.kak
@@ -17,3 +17,20 @@
# define-surround '"' '"' '"' '"'
# define-surround "'" "'" "'" "'"
# define-surround t "c<lt>div,<lt>/div<gt><ret>" "<lt>div<gt>" "<lt>/div<gt>"
+
+
+# declare-option range-specs ghost_completion;
+# add-highlighter global/ replace-ranges ghost_completion
+
+# hook global ModeChange .*:insert:.* %{
+# unset buffer ghost_completion
+# }
+
+# map global insert <c-o> '<a-;>: appsugg<ret>'
+
+# def appsugg %{
+# set buffer ghost_completion %val{timestamp} %sh{
+# result=$(ai "$kak_selections")
+# echo -e "$kak_selection_desc|{comment}$result{Default}"
+# }
+# }