2022-08-04 21:26:50 -03:00
|
|
|
# {{@@ header() @@}}
|
|
|
|
# _ __ _
|
|
|
|
# | |/ /__ _| | _____ _ _ _ __ ___
|
|
|
|
# | ' // _` | |/ / _ \| | | | '_ \ / _ \
|
|
|
|
# | . \ (_| | < (_) | |_| | | | | __/
|
|
|
|
# |_|\_\__,_|_|\_\___/ \__,_|_| |_|\___|
|
|
|
|
|
|
|
|
set global tabstop 4
|
|
|
|
|
|
|
|
hook global BufCreate .*\.py %{
|
|
|
|
set global indentwidth 4
|
|
|
|
}
|
|
|
|
|
2022-08-04 23:28:18 -03:00
|
|
|
hook global BufCreate .*\.nix %{
|
|
|
|
set global indentwidth 2
|
|
|
|
}
|
|
|
|
|
2022-08-04 21:26:50 -03:00
|
|
|
#################################################################
|
|
|
|
# Spaces
|
|
|
|
#################################################################
|
|
|
|
|
|
|
|
set global indentwidth 4
|
|
|
|
|
|
|
|
# use spaces insted of tabs
|
|
|
|
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
|
|
|
|
}
|