Last active
January 26, 2023 21:04
-
-
Save madmo/57e3d6bbfe87891e1db9410646879317 to your computer and use it in GitHub Desktop.
My kakoune config (.config/kak/kakrc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evaluate-commands %sh{ | |
plugins="$kak_config/plugins" | |
mkdir -p "$plugins" | |
[ ! -e "$plugins/plug.kak" ] && \ | |
git clone -q https://github.com/andreyorst/plug.kak.git "$plugins/plug.kak" | |
printf "%s\n" "source '$plugins/plug.kak/rc/plug.kak'" | |
} | |
plug "andreyorst/plug.kak" noload | |
plug "andreyorst/smarttab.kak" | |
plug "alexherbo2/auto-pairs.kak" | |
plug "dracula/kakoune" theme %{ | |
colorscheme dracula | |
} | |
plug "kak-lsp/kak-lsp" do %{ | |
cargo install --locked --force --path . | |
} | |
hook global WinSetOption filetype=(rust|python|go|javascript|typescript|c|cpp) %{ | |
lsp-enable-window | |
} | |
hook global WinSetOption filetype=rust %{ | |
expandtab | |
enable-auto-pairs | |
} | |
hook global WinSetOption filetype=(c|cpp) %{ | |
smarttab | |
enable-auto-pairs | |
} | |
set -add global ui_options terminal_enable_mouse=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment