Files
PyPost/.vscode/settings.json

67 lines
1.4 KiB
JSON

{
// Lua Language Server settings
"Lua.runtime.version": "Lua 5.4",
"Lua.workspace.checkThirdParty": false,
"Lua.workspace.library": [
"./.vscode"
],
"Lua.hint.enable": true,
"Lua.completion.callSnippet": "Both",
"Lua.completion.autoRequire": false,
// Diagnostics: treat these globals as known
"Lua.diagnostics.globals": [
"add_route",
"add_get_route",
"add_post_route",
"register_hook",
"list_html_files",
"list_markdown_files",
"write_markdown",
"html_add_class",
"html_add_attribute",
"html_insert_before",
"html_insert_after",
"html_wrap_content",
"html_remove_tag",
"md_add_header",
"md_replace_section",
"md_append_content",
"md_prepend_content",
"md_insert_at_position",
"md_find_section",
"md_remove_section",
"md_add_list_item",
"md_wrap_code_block",
"table_to_json",
"json_to_table",
"json_parse",
"json_stringify",
"string_split",
"string_join",
"string_replace",
"string_match",
"string_match_all",
"file_exists",
"file_size",
"list_directory",
"log"
],
// Formatting
"Lua.format.enable": true,
"Lua.format.defaultConfig": {
"indent_style": "space",
"indent_size": "2"
},
// Disable warnings about lowercase globals
"Lua.diagnostics.disable": [
"lowercase-global"
],
// Optional
"Lua.telemetry.enable": false
}