From 2fa61e7942d899c7d883d3f5a82e7623740ebb6b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 14 Oct 2025 00:36:11 +0530 Subject: Add luar --- autoload/+init.kak | 28 +++++++++++++++++----------- autoload/luar | 1 + 2 files changed, 18 insertions(+), 11 deletions(-) create mode 160000 autoload/luar (limited to 'autoload') diff --git a/autoload/+init.kak b/autoload/+init.kak index 66374c4..3857043 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -3,6 +3,11 @@ nop %sh{ ln -s "$kak_runtime/rc" "$kak_config/autoload/standard-library" 2>/dev/ # evaluate-commands %sh{kak-tree-sitter -dksvv --init "${kak_session}"} evaluate-commands %sh{kcr init kakoune} +hook global KakBegin .* %{ + require-module luar + set-option global luar_interpreter luajit +} + colorscheme phenax set-option global autoreload yes set-option global incsearch true @@ -13,8 +18,8 @@ set-option global startup_info_version 20250603 set-option global scrolloff 10,3 set-option global makecmd 'make -j8' # Override for others set-option -add global ui_options \ - terminal_assistant=none \ terminal_enable_mouse=false + # terminal_assistant=none \ set-option global modelinefmt \ '{StatusLineDetails}{{context_info}} {{mode_info}} %val{cursor_line}/%val{buf_line_count}:%val{cursor_char_column} @@ -31,7 +36,7 @@ add-highlighter global/ show-matching -previous # Search hook global RegisterModified '/' %{ add-highlighter -override global/search regex "%reg{/}" 0:search } -map global user '' ':set-register slash ""' +map global user '' ': set-register slash ""' map global user '/' '/(?i)' map global user 'r' '*%s' @@ -57,20 +62,20 @@ hook global ModeChange .*:insert:.* %{ try %{ # Tmux window mode declare-user-mode win map global normal ':enter-user-mode win' -docstring 'Window mode' -map global win q ':quit' -docstring 'Quit' -map global win v ':tmux-terminal-horizontal kak -c %val{session}' -docstring 'Split vertical' -map global win s ':tmux-terminal-vertical kak -c %val{session}' -docstring 'Split horizontal' -map global win h ':nop %sh{tmux select-pane -L}' -docstring 'Jump left' -map global win j ':nop %sh{tmux select-pane -D}' -docstring 'Jump down' -map global win k ':nop %sh{tmux select-pane -U}' -docstring 'Jump up' -map global win l ':nop %sh{tmux select-pane -R}' -docstring 'Jump right' -map global win z ':wq' - +map global win q ': quit' -docstring 'Quit' +map global win v ': tmux-terminal-horizontal kak -c %val{session}' -docstring 'Split vertical' +map global win s ': tmux-terminal-vertical kak -c %val{session}' -docstring 'Split horizontal' +map global win h ': nop %sh{tmux select-pane -L}' -docstring 'Jump left' +map global win j ': nop %sh{tmux select-pane -D}' -docstring 'Jump down' +map global win k ': nop %sh{tmux select-pane -U}' -docstring 'Jump up' +map global win l ': nop %sh{tmux select-pane -R}' -docstring 'Jump right' +map global win z ': wq' # Clipboard management mappings map global user y " xclip -selection clipboard" -docstring "yank the selection into the clipboard" map global user p " xclip -selection clipboard -o" -docstring "paste the clipboard" +# Code mode declare-user-mode code map global user c ':enter-user-mode code' -docstring 'Code mode' map global code c :comment-line -docstring 'Comment/uncomment lines' @@ -81,6 +86,7 @@ map global code :casekebab -docstring 'kebab-casing' map global code :casesnake -docstring 'snake_casing' map global code :casecamel -docstring 'camelCasing' +# Quick move map global normal 15j map global normal 15k diff --git a/autoload/luar b/autoload/luar new file mode 160000 index 0000000..e32ac89 --- /dev/null +++ b/autoload/luar @@ -0,0 +1 @@ +Subproject commit e32ac89fdc43e5dbd8750d55cbcf1aea66d3ebdf -- cgit v1.3.1