kakoune: load editorconfig

This commit is contained in:
Timothy DeHerrera 2020-12-28 19:05:46 -07:00
parent 58b8d41ce5
commit 932147304e
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
environment.systemPackages = with pkgs; [
clang-tools
editorconfig-core-c
kak-lsp
kakoune-config
kakoune-unwrapped

View File

@ -13,6 +13,9 @@ hook global BufWritePre ^[^*]+$ %{
try %{ execute-keys -draft \%@s\h+$<ret>d }
}
# use .editorconfig
hook global WinCreate .* %{editorconfig-load}
# useful mappings
map global normal <a-q> ': delete-buffer<ret>'
map global normal <c-s> ': write<ret>'