kak: support tabs on makefile
This commit is contained in:
parent
1d0d5a7e3c
commit
338cf0147a
|
@ -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 @@%}
|
||||
|
|
Reference in New Issue