Skip to content

Commit

Permalink
Update auto-complete tweaks for LSP 1.2.12 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols authored Mar 6, 2021
1 parent 91f5856 commit 1216b3f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions LSP-json.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
// Open "Preferences: LSP Utils Settings" from the Command Palette to customize the Node runtime.
"command": ["${node_bin}", "${server_path}", "--stdio"],
// ST3
"languages": [
Expand All @@ -23,9 +24,14 @@
],
// ST4
"selector": "source.json",
// don't auto-complete in comments and after typing a "," or ":", and after closing a string
"auto_complete_selector": "- comment - punctuation.separator - punctuation.definition.string.end - constant.character.escape - invalid.illegal",
"ignore_server_trigger_chars": true,
// don't auto-complete in comments and after typing a ",", ":", "{" or "[", and after closing a string
"auto_complete_selector": "- comment - punctuation.separator - punctuation.definition.string.end - constant.character.escape - invalid.illegal - punctuation.section.mapping.begin - punctuation.section.sequence.begin",
"disabled_capabilities": {
// the trigger characters are too blunt, we'll specify auto_complete_selector manually
"completionProvider": {
"triggerCharacters": true
}
},
"initializationOptions": {
"customCapabilities.rangeFormatting.editLimit": 1000,
"handledSchemaProtocols": ["https", "http", "file"],
Expand Down

0 comments on commit 1216b3f

Please sign in to comment.