Kakoune
This commit is contained in:
parent
726a5d0538
commit
f74e71ac18
1
apps/kak/.gitignore
vendored
Normal file
1
apps/kak/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
plugins
|
23
apps/kak/kakrc
Normal file
23
apps/kak/kakrc
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
source "%val{config}/plugins/plug.kak/rc/plug.kak"
|
||||||
|
|
||||||
|
plug "andreyorst/fzf.kak"
|
||||||
|
|
||||||
|
map global normal <c-p> ': fzf-mode<ret>'
|
||||||
|
|
||||||
|
map global normal D '<a-l>d' -docstring 'delete to end of line'
|
||||||
|
map global normal Y '<a-l>y' -docstring 'yank to end of line'
|
||||||
|
|
||||||
|
hook global InsertChar k %{ try %{
|
||||||
|
exec -draft hh <a-k>jk<ret> d
|
||||||
|
exec <esc>
|
||||||
|
}}
|
||||||
|
hook global InsertChar j %{ try %{
|
||||||
|
exec -draft hh <a-k>jj<ret> d
|
||||||
|
exec <esc>
|
||||||
|
}}
|
||||||
|
|
||||||
|
set global tabstop 2
|
||||||
|
set global indentwidth 2
|
||||||
|
|
||||||
|
set-option global fzf_file_command 'rg'
|
||||||
|
|
3
apps/kak/setup-plugins.sh
Executable file
3
apps/kak/setup-plugins.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
git clone https://github.com/andreyorst/plug.kak.git ~/.config/kak/plugins/plug.kak
|
|
@ -74,6 +74,9 @@ links=(
|
||||||
# libinput configuration
|
# libinput configuration
|
||||||
"apps/de/libinput/gestures.conf" "$XDG_CONFIG_HOME/libinput-gestures.conf"
|
"apps/de/libinput/gestures.conf" "$XDG_CONFIG_HOME/libinput-gestures.conf"
|
||||||
|
|
||||||
|
# kakoune editor configuration
|
||||||
|
"apps/kak/" "$XDG_CONFIG_HOME/kak"
|
||||||
|
|
||||||
# gpg config
|
# gpg config
|
||||||
"apps/gpg/agent.conf" "$HOME/.gnupg/gpg-agent.conf"
|
"apps/gpg/agent.conf" "$HOME/.gnupg/gpg-agent.conf"
|
||||||
|
|
||||||
|
|
Reference in a new issue