kak: support tabs on makefile

This commit is contained in:
lelgenio 2021-03-09 20:10:43 -03:00
parent 1d0d5a7e3c
commit 338cf0147a
1 changed files with 10 additions and 3 deletions

View File

@ -42,8 +42,15 @@ hook global BufOpenFile .*\.(ya?ml|c(pp)?) %{
set global indentwidth {{@@ indent_width @@}}
# use spaces insted of tabs
hook global InsertChar \t %{
exec -draft -itersel h@
} -group replace-tabs-with-spaces
hook global BufCreate .* %{
hook buffer InsertChar \t %{
exec -draft -itersel h@
} -group replace-tabs-with-spaces
}
hook global WinSetOption filetype=makefile %{
remove-hooks buffer replace-tabs-with-spaces
}
{%@@ endif @@%}