Skip to content

Instantly share code, notes, and snippets.

@inad9300
Last active May 10, 2020 08:27
Show Gist options
  • Save inad9300/cbfe2c9571c4a7698da1db3cbd67e059 to your computer and use it in GitHub Desktop.
Save inad9300/cbfe2c9571c4a7698da1db3cbd67e059 to your computer and use it in GitHub Desktop.
Settings for Visual Studio Code, Sublime Text and rxi's lite.
# Requirements:
# sudo apt install libsdl2-dev
export LITE_SCALE=1.8
alias lite=~/Programs/lite/lite
{
"font_size": 14,
"draw_indent_guides": false
}
system.set_window_mode("maximized")
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+l",
"command": "workbench.debug.panel.action.clearReplAction",
"when": "inDebugRepl"
}
]
local syntax = require "core.syntax"
syntax.add {
files = { "%.ts$" },
comment = "//",
patterns = {
{ pattern = "//.-\n", type = "comment" },
{ pattern = { "/%*", "%*/" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = { "`", "`", '\\' }, type = "string" },
{ pattern = "0x[%da-fA-F]+", type = "number" },
{ pattern = "-?%d+[%d%.eE]*", type = "number" },
{ pattern = "-?%.?%d+", type = "number" },
{ pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
{ pattern = "[%a_][%w_]*", type = "symbol" },
},
symbols = {
["any"] = "keyword",
["as"] = "keyword",
["boolean"] = "keyword",
["break"] = "keyword",
["case"] = "keyword",
["catch"] = "keyword",
["class"] = "keyword",
["const"] = "keyword",
["constructor"] = "keyword",
["continue"] = "keyword",
["debugger"] = "keyword",
["declare"] = "keyword",
["default"] = "keyword",
["delete"] = "keyword",
["do"] = "keyword",
["else"] = "keyword",
["enum"] = "keyword",
["export"] = "keyword",
["extends"] = "keyword",
["false"] = "literal",
["finally"] = "keyword",
["for"] = "keyword",
["from"] = "keyword",
["function"] = "keyword",
["get"] = "keyword",
["if"] = "keyword",
["implements"] = "keyword",
["import"] = "keyword",
["in"] = "keyword",
["instanceof"] = "keyword",
["interface"] = "keyword",
["let"] = "keyword",
["module"] = "keyword",
["new"] = "keyword",
["null"] = "literal",
["number"] = "keyword",
["of"] = "keyword",
["package"] = "keyword",
["private"] = "keyword",
["protected"] = "keyword",
["public"] = "keyword",
["require"] = "keyword",
["return"] = "keyword",
["set"] = "keyword",
["static"] = "keyword",
["string"] = "keyword",
["super"] = "keyword",
["switch"] = "keyword",
["symbol"] = "keyword",
["this"] = "keyword2",
["throw"] = "keyword",
["true"] = "literal",
["try"] = "keyword",
["type"] = "keyword",
["typeof"] = "keyword",
["undefined"] = "literal",
["var"] = "keyword",
["void"] = "keyword",
["while"] = "keyword",
["with"] = "keyword",
["yield"] = "keyword",
},
}
{
// "color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
// "theme": "Default.sublime-theme",
// "font_size": 11,
// "font_face": "Fira Code",
"ensure_newline_at_eof_on_save": true,
"save_on_focus_lost": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"line_numbers": false
}
{
// "debug.console.fontSize": 13,
"editor.cursorBlinking": "solid",
"editor.find.addExtraSpaceOnTop": false,
// "editor.fontFamily": "Hack, 'Fira Code', Inconsolata, Consolas, 'Courier New', monospace",
// "editor.fontLigatures": true,
// "editor.fontSize": 13,
"editor.hideCursorInOverviewRuler": true,
"editor.lineNumbers": "off",
"editor.renderIndentGuides": false,
"editor.renderLineHighlight": "none",
"editor.rulers": [],
// "editor.suggestSelection": "first",
"explorer.autoReveal": false,
"explorer.openEditors.visible": 0,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 512,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
// "java.configuration.checkProjectSettingsExclusions": false,
// "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
// "javascript.preferences.quoteStyle": "single",
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"terminal.integrated.cursorStyle": "line",
// "terminal.integrated.fontSize": 13,
// "terminal.integrated.rendererType": "dom",
// "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
// "typescript.preferences.quoteStyle": "single",
// "typescript.updateImportsOnFileMove.enabled": "always",
// "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"window.menuBarVisibility": "toggle",
"window.titleBarStyle": "custom",
"window.zoomLevel": 0,
"workbench.startupEditor": "none",
}
{
"Print to console (1)": {
"prefix": "log",
"body": [
"console.debug('$1')"
],
"description": "Log output to console"
},
"Print to console (2)": {
"prefix": "llog",
"body": [
"console.debug('$1', $1)"
],
"description": "Log output to console"
},
"Print to console (3)": {
"prefix": "lllog",
"body": [
"console.debug('$1', JSON.parse(JSON.stringify($1)))"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment