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; [ environment.systemPackages = with pkgs; [
clang-tools clang-tools
editorconfig-core-c
kak-lsp kak-lsp
kakoune-config kakoune-config
kakoune-unwrapped kakoune-unwrapped

View file

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