mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 10:32:19 +03:00
Fix the format-code alias, remove an unused function
This commit is contained in:
parent
88775a91b3
commit
afd9203dbf
@ -81,10 +81,6 @@ def dlang-format-dfmt -docstring "Format the code using the dfmt utility" %{
|
||||
}
|
||||
}
|
||||
|
||||
def dlang-disable-dfmt -docstring "Disable automatic code formatting" %{
|
||||
rmhooks buffer dlang-formatter
|
||||
}
|
||||
|
||||
# Initialization
|
||||
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
|
||||
@ -97,7 +93,7 @@ hook global WinSetOption filetype=dlang %{
|
||||
hook window InsertChar \{ -group dlang-indent _dlang-indent-on-opening-curly-brace
|
||||
hook window InsertChar \} -group dlang-indent _dlang-indent-on-closing-curly-brace
|
||||
|
||||
alias global format-code dlang-format-dfmt
|
||||
alias buffer format-code dlang-format-dfmt
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!dlang).* %{
|
||||
@ -106,5 +102,5 @@ hook global WinSetOption filetype=(?!dlang).* %{
|
||||
rmhooks window dlang-hooks
|
||||
rmhooks window dlang-indent
|
||||
|
||||
unalias global format-code
|
||||
unalias buffer format-code
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user