Skip to content

Instantly share code, notes, and snippets.

@anhlt
Last active July 19, 2020 06:07
Show Gist options
  • Save anhlt/2518fa1d17fc6a9994a80b9c2f2fb609 to your computer and use it in GitHub Desktop.
Save anhlt/2518fa1d17fc6a9994a80b9c2f2fb609 to your computer and use it in GitHub Desktop.
WSL_Sync_Setting
" Type :help nv for help.
let mapleader=,
nnoremap <leader>d :Neovintageous action=toggle_side_bar<CR>
{
"autoformat_ignore":
[
"E501",
// "E701"
],
"pep8_ignore":
[
"E501",
// "E701"
]
}
{
"extensions":
[
"pyx"
]
}
[
{ "keys": ["ctrl+`"], "command": "toggle_terminus_panel" },
{ "keys": ["alt+w"], "command": "show_scala_worksheet", "context": [{ "key": "selector", "operator": "equal", "operand": "source.scala" }]},
{
"keys": [",", "d"],
"command": "neovintageous",
"args": { "action": "toggle_side_bar" },
"context": [
{ "key": "control", "operand": "sidebar_tree" }
]
},
{ "keys": ["ctrl+alt+n"], "command": "advanced_new_file_new"},
{ "keys": ["shift+ctrl+alt+n"], "command": "advanced_new_file_new", "args": {"is_python": true}},
{
"command": "lsp_symbol_definition",
"keys": [
"ctrl+alt+d"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "definitionProvider"
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
}
]
},
{
"command": "lsp_format_document",
"keys": [
"ctrl+alt+f"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "documentFormattingProvider | documentRangeFormattingProvider"
}
]
},
]
[
{
"keys": ["ctrl+`"],
"command": "toggle_terminus_panel"
},
{
"keys": ["ctrl+^"],
"command": "toggle_terminus_panel"
},
{
"keys": ["ctrl+b", "1"],
"command": "focus_group",
"args":
{
"group": 0
}
},
{
"keys": ["ctrl+b", "2"],
"command": "focus_group",
"args":
{
"group": 1
}
},
{
"keys": ["ctrl+b", "3"],
"command": "focus_group",
"args":
{
"group": 2
}
},
{
"keys": ["ctrl+b", "4"],
"command": "focus_group",
"args":
{
"group": 3
}
},
{
"keys": ["ctrl+b", "5"],
"command": "focus_group",
"args":
{
"group": 4
}
},
{
"keys": ["ctrl+b", "6"],
"command": "focus_group",
"args":
{
"group": 5
}
},
{
"keys": ["ctrl+b", "7"],
"command": "focus_group",
"args":
{
"group": 6
}
},
{
"keys": ["ctrl+b", "8"],
"command": "focus_group",
"args":
{
"group": 7
}
},
{
"keys": ["ctrl+b", "9"],
"command": "focus_group",
"args":
{
"group": 8
}
},
// LSP
{
"keys": ["ctrl+alt+r"],
"command": "lsp_symbol_references"
},
{
"keys": ["ctrl+alt+d"],
"command": "lsp_symbol_definition"
},
{
"keys": ["ctrl+alt+f"],
"command": "lsp_format_document"
},
{
"keys": ["ctrl+t"],
"command": "show_overlay",
"args":
{
"overlay": "command_palette",
"command": "lsp_workspace_symbols"
}
},
{
"keys": ["ctrl+m"],
"command": "lsp_toggle_panel",
"args": {"panel_type": "diagnostics"}
},
// dired
{
"keys": ["f1"],
"command": "dired",
"args":
{
"immediate": true,
"project": true,
"single_pane": true,
"other_group" : "right"
}
},
{
"keys": ["enter"],
"command": "dired_select",
"args":
{
"and_close": true
},
"context": [
{
"key": "selector",
"operator": "equal",
"operand": "text.dired"
},
{
"key": "setting.dired_rename_mode",
"operand": false
}]
}
]
// Settings in here override those in "${packages}/DoxyDoxygen/Doxy.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"profiles": [
{
"languages": ["scala"],
"parsers": ["LanguageJava"],
"doc_styles": ["JavaDoc"] // instead of "PhpDoc"
}],
}
{
"token" : "c346aa457f5a72a631875b0469a09f0b8dbfd70c"
}
// GitGutter Settings - User
{
"show_markers_on_untracked_file": false,
}
{
"debug_mode": true,
"github_hostnames": [
"github.com"
]
}
{
"active_account": "GitHub"
}
{
"npm_custom_path": "/usr/local/bin/npm",
"node_js_custom_path": "/usr/local/bin/node"
}
{
"languages": [
{
"languageId": "vue",
"scopes": ["text.html.vue"],
"syntaxes": [
"Packages/vue-syntax-highligh/vue.tmLanguage",
"Packages/vue-syntax-highligh/vue.YAML-tmLanguage",
"Packages/Vue Syntax Highlight/Vue Component.sublime-syntax",
]
}]
}
{
"auto_show_diagnostics_panel": "saved",
"document_highlight_style": "stippled",
"initialize_timeout": 30,
"log_debug": true,
"log_payloads": true,
"log_server": true,
"only_show_lsp_completions": true,
"prefer_label_over_filter_text": true,
"show_code_actions_bulb": true,
"show_diagnostics_phantoms": true,
"show_diagnostics_severity_level": 4,
"clients":
{
"pyls":
{
// pip install -U python-language-server[all] pyls-mypy
"enabled": true,
"command": [
"pyls",
],
"settings":
{
"pyls":
{
"env":
{
// @see https://github.com/sublimelsp/LSP/issues/531#issuecomment-568188403
// "VIRTUAL_ENV": "/Users/mike/.virtualenvs/my-virtual-env"
},
"plugins":
{
"pycodestyle":
{
"enabled": true,
"ignore": [
"E2",
"E5",
"E501",
// PEP 8 suggests putting multiline binary operator in a new line
// so we disable W503 (PEP 8) and enable W504
// https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
"W503",
],
},
"pydocstyle":
{
"enabled": true,
"ignore": [
"D1",
"D2",
"D4",
],
},
"pyflakes":
{
"enabled": true,
},
"pylint":
{
"enabled": false,
"ignore": [],
},
"pyls_mypy":
{
"enabled": false,
"live_mode": true,
},
},
},
},
"languageId": "python",
"scopes": [
"source.python",
],
"syntaxes": [
"Packages/Python/Python.sublime-syntax",
],
},
}
}
{
/**
* The "saved_layouts" key holds a list of previously
* saved layout settings. These can be set using the
* "Origami: Save Current Layout" command, they can be
* restored using the "Origami: Restore Saved Layout"
* command and can be removed using the "Origami: Remove
* Saved Layout" command.
*
* Valid format: {"nickname": XXXX, "cells": XXXX,
* "cols": XXXX, "rows": XXXX}
*/
"saved_layouts": [],
// Create a new pane when switching in a direction without one
"create_new_pane_if_necessary": true,
"auto_close_empty_panes" : true
}
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment