Adding rebuilt sublime text config

This commit is contained in:
László Károlyi 2021-11-11 18:20:18 +01:00
commit 82ed8341ae
Signed by: karolyi
GPG key ID: 2DCAF25E55735BFE
11 changed files with 210 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
*
!Packages/User/*
!README.md
!.gitignore

View file

@ -0,0 +1,38 @@
[
// Format Document
{
"command": "lsp_format_document",
"keys": [
"primary+alt+r"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "documentFormattingProvider | documentRangeFormattingProvider"
}
]
},
// Go To Definition
{
"command": "lsp_symbol_definition",
"args": {
"side_by_side": false
},
"keys": [
"primary+alt+g"
],
"context": [
{
"key": "lsp.session_with_capability",
"operator": "equal",
"operand": "definitionProvider"
},
{
"key": "auto_complete_visible",
"operator": "equal",
"operand": false
}
]
},
]

View file

@ -0,0 +1,26 @@
// Settings in here override those in "LSP-pylsp/LSP-pylsp.sublime-settings"
{
"disabled_capabilities": {
"completionProvider": true,
"definitionProvider": true,
"documentHighlightProvider": true,
"documentSymbolProvider": true,
"hoverProvider": true,
"referencesProvider": true,
"renameProvider": true,
"signatureHelpProvider": true,
},
"settings": {
"pylsp.plugins.flake8.enabled": true,
"pylsp.plugins.pyls_isort.enabled": true,
"pylsp.plugins.pydocstyle.enabled": false,
"pylsp.plugins.pycodestyle.enabled": false,
"pylsp.plugins.jedi_completion.enabled": false,
"pylsp.plugins.jedi_definition.enabled": false,
"pylsp.plugins.jedi_hover.enabled": false,
"pylsp.plugins.jedi_references.enabled": false,
"pylsp.plugins.jedi_signature_help.enabled": false,
"pylsp.plugins.jedi_symbols.enabled": false,
}
}

View file

@ -0,0 +1,9 @@
// Settings in here override those in "LSP/LSP.sublime-settings"
{
"log_debug": true,
"log_server": [
"panel",
"remote",
],
"show_diagnostics_panel_on_save": 0,
}

View file

@ -0,0 +1,16 @@
// Documentation at https://www.sublimetext.com/docs/themes.html
{
"variables":
{
},
"rules":
[
{
"class": "label_control",
"color": [156, 170, 177],
"shadow_color": [24, 24, 24, 0],
"shadow_offset": [0, 0],
"font.bold": true
},
]
}

View file

@ -0,0 +1,19 @@
// Documentation at https://www.sublimetext.com/docs/color_schemes.html
{
"variables":
{
},
"globals":
{
"invisibles": "#CCC",
},
"rules":
[
// https://lsp.sublimetext.io/customization/
// https://www.sublimetext.com/docs/color_schemes.html#variables
{
"scope": "markup.warning.lsp",
"foreground": "color(darkgoldenrod)",
}
]
}

View file

@ -0,0 +1,24 @@
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"CursorRuler",
"Git",
"LSP",
"LSP-css",
"LSP-html",
"LSP-jdtls",
"LSP-json",
"LSP-pylsp",
"LSP-pyright",
"LSP-typescript",
"Material Theme",
"Monokai Extended",
"Package Control",
"Sass",
],
}

View file

@ -0,0 +1,43 @@
{
"color_scheme": "auto",
"dark_color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
"light_color_scheme": "Packages/Monokai Extended/Monokai Extended Light.tmTheme",
"dark_theme": "Material-Theme-Darker.sublime-theme",
"light_theme": "Material-Theme-Lighter.sublime-theme",
"theme": "auto",
"always_show_minimap_viewport": true,
"font_face": "JetbrainsMono Nerd Font",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
"indent_guide_options":
[
"draw_active",
"draw_normal"
],
"ignored_packages":
[
"Vintage",
],
"caret_style": "solid",
"overlay_scroll_bars": "disabled",
"rulers":
[
72,
79
],
"save_on_focus_lost": true,
"translate_tabs_to_spaces": true,
/*"caret_style": "solid",*/
"wide_caret": true,
"font_options":
[
"subpixel_antialias"
],
"draw_minimap_border": true,
// "draw_white_space": "selection",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"bold_folder_labels": true,
"update_check": false,
}

View file

@ -0,0 +1,9 @@
<snippet>
<content><![CDATA[
from IPython import embed; embed()
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ipy</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.python</scope>
</snippet>

22
README.md Normal file
View file

@ -0,0 +1,22 @@
st3-config
==========
Settings sync repo for my ST3
# Setting up sublime3 to use it
1. Install Package Manager for sublime, here's how: https://packagecontrol.io/installation
2. quit Sublime
3. cd into your sublime application directory (the exact path depends on the OS you use, find it out for yourself)
4. `git init`
5. `git remote add origin http://github.com/karolyi/st3-config`
6. `git pull origin master`
7. `git pull`
8. `git checkout -f master`
9. Restart Sublime, and let Package Manager install the packages for your newly installed configuration
10. ???
11. Profit!
This sublime setting uses the 'Jetbrains Mono' font with ligatures. You might
want to change it or download the font for yourselves from here:
https://www.jetbrains.com/lp/mono/