style: remove testing indent style and disable formatting diagnostics

This commit is contained in:
tomasklaen
2022-08-24 14:14:00 +02:00
parent 25adcfbf07
commit 54f64c1fb5
2 changed files with 9 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
# [basic]
indent_style = space
indent_style = tab
tab_width = 4
# none/single/double
quote_style = single
@@ -28,7 +28,7 @@ call_arg_parentheses = keep
# none/comma/semicolon
table_separator_style = comma
# keep/never/always/smart
trailing_table_separator = smart
trailing_table_separator = always
# align equal signs in tables
continuous_assign_table_field_align_to_equal_sign = false
# if true "local t = { 1, 2, 3 }"
@@ -76,3 +76,8 @@ keep_line_after_for_statement = keepLine
keep_line_after_local_or_assign_statement = keepLine
keep_line_after_function_define_statement = keepLine
keep_line_after_expression_statement = keepLine
# [diagnostic]
# creates a lot of warnings I can't do anything about so disable it is
enable_check_codestyle = false

View File

@@ -616,7 +616,8 @@ function get_adjacent_file(file_path, direction, allowed_types)
end
-- Can't use `os.remove()` as it fails on paths with unicode characters.
-- Returns `result, error`, result is table of `status:number(<0=error), stdout, stderr, error_string, killed_by_us:boolean`
-- Returns `result, error`, result is table of:
-- `status:number(<0=error), stdout, stderr, error_string, killed_by_us:boolean`
function delete_file(file_path)
local args = state.os == 'windows' and {'cmd', '/C', 'del', file_path} or {'rm', file_path}
return mp.command_native({