![]() ![]() end_of_line = lf insert_final_newline = true # Matches multiple files with brace expansion notation Sometimes it may be useful to disable automatic formatting.Root = true # Unix-style newlines with a newline ending every file ![]() Style configure fileĬonfiguration parameters not specified fallback to their default values.Ĭolumn_limit: 80 indent_width: 4 use_tab: false tab_width: 4 continuation_indent_width: 4 spaces_before_call: 1 keep_simple_control_block_one_line: true keep_simple_function_one_line: true align_args: true break_after_functioncall_lp: false break_before_functioncall_rp: false spaces_inside_functioncall_parens: false spaces_inside_functiondef_parens: false align_parameter: true chop_down_parameter: false break_after_functiondef_lp: false break_before_functiondef_rp: false align_table_field: true break_after_table_lb: true break_before_table_rb: true chop_down_table: false chop_down_kv_table: true table_sep: ", " column_table_limit: 0 extra_sep_at_table_end: false spaces_inside_table_braces: false break_after_operator: true double_quote_to_single_quote: false single_quote_to_double_quote: false spaces_around_equals_in_field: true line_breaks_after_function_body: 1 line_separator: input Disable formatting for a line or block The program will give the top priority to the configuration values given in the command-line, then to the configuration files and finally to the hard-coded default values. In case there's no file, it will fallback to the default configuration. On Linux it will use $XDG_CONFIG_HOME/luaformatter/config.yaml if. lua-format file in a parent directory recursively. If none is found, it will try to locate a. lua-format file if no config file is passed in the command line. The program will attempt to automatically use the current directory's. "-" can be used to terminate flag options and force all followingĪrguments to be treated as positional options line-separator= input(determined by the input content), ![]() spaces-around-equals-in-field Put spaces around the equal sign in no-spaces-inside-table-braces Do not put spaces on the inside of spaces-inside-table-braces Put spaces on the inside of braces in no-single-quote-to-double-quote Do not transform string literals to use single-quote-to-double-quote Transform string literals to use double no-double-quote-to-single-quote Do not transform string literals to use double-quote-to-single-quote Transform string literals to use single no-break-after-operator Do not put break after operators break-after-operator Put break after operators no-extra-sep-at-table-end Do not add extra field separator at end extra-sep-at-table-end Add extra field separator at end of no-chop-down-kv-table Do not chop down table if table contains chop-down-kv-table Chop down table if table contains key no-chop-down-table Do not chop down any table break-after-table-lb Break after '' of table no-align-table-field Do not align fields of table no-break-before-functiondef-rp Do not break before ')' of function def break-before-functiondef-rp Break before ')' of function def no-break-after-functiondef-lp Do not break after '(' of function def break-after-functiondef-lp Break after '(' of function def ![]() no-chop-down-parameter Do not chop down all parameters chop-down-parameter Chop down all parameters no-align-parameter Do not align the parameters no-break-before-functioncall-rp Do not break before ')' of function call break-before-functioncall-rp Break before ')' of function call no-break-after-functioncall-lp Do not break after '(' of function call break-after-functioncall-lp Break after '(' of function call no-align-args Do not align the arguments keep-simple-function-one-line keep function in one line no-use-tab Do not use tab for indentation table-sep= Character to separate table fields Table limit] Column limit of each line of a table Indentation width] Indent width for continuations line tab-width= Number of spaces used per tab Width] Number of spaces used for indentation dump-config Dumps the default style used to stdout ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |