CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
140 stars 27 forks source link

[Feature Request] Support disable line spacing formatter #132

Closed HubertZhang closed 1 year ago

HubertZhang commented 1 year ago

请问有没有方法关闭空行检查呢,有时希望保留函数开始和末尾的空行。例如想保留下面的空行

  function A()
--  
      -- lalala
      print("b")

      -- bbb
      print("C")
--      
  end
CppCXY commented 1 year ago

我感觉这样的代码很丑, 有什么必须的理由吗

CppCXY commented 1 year ago

在发布之后, 你需要设置选项line_space_around_block = keep 或者 line_space_around_block = max(2)