This repository has been archived by the owner on May 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
/
AngularJS-sublime-package.sublime-settings
130 lines (102 loc) · 3.75 KB
/
AngularJS-sublime-package.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
/**
Completion Options
**/
// turns all completion help off
"disable_all_completions": false,
// turns off completions for indexed directives
"disable_indexed_directive_completions": false,
// turns off completions for directives isolate attributes
"disable_indexed_isolate_completions": false,
// turns off default completions
"disable_default_directive_completions": false,
// turns off default element completions
"disable_default_element_completions": false,
// turns off the js completions
"disable_default_js_completions": false,
// flag to add the `data-` prefix to the completions
"enable_data_prefix": false,
// flag to add AngularUI directives to completion list
// Scope triggers
"js_scope": "source.js - string.quoted - comment - meta.brace.square",
"filter_scope": "text.html string.quoted",
// Avoid prefixes (add chars that you want to prevent completion triggers)
"js_prefixes": [","],
/**
Indexing Options
**/
// update this to the app names you use for strict matching
// ensure you use a | to separate the names
//
// for greedy matching make the value ".*"
// ex: "match_app_names": ".*",
//
// for word matching use "\\w"
// ex: "match_app_names": "\\w",
"match_app_names": "app",
// AngularJS definitions to search for
"match_definitions": ["constant", "controller", "directive", "factory", "filter", "module", "service", "value"],
// directories you wish to ignore within your current working directory
"exclude_dirs":[
"node_modules/"
],
// file suffixes to ignore (uses string.endswith(...))
"exclude_file_suffixes":[
"angular.js",
"min.js"
],
/**
Quick Panel Options
**/
// Shows preview of file where currently highlighted definition is
// (Only works in Sublime Text 3)
"show_file_preview": true,
/**
Definition Lookup Options
**/
// Characters considered to separate directives (words)
// this is a modified version of what Sublime Text uses by default
// It's modified to allow for - to be considered part of a word
// for cases such as my-new-directive
"non_word_chars": "[\\./\\\\(\\)\"':,;<>~!@#\\$%\\^&\\*\\|\\+=\\[\\]{}`~\\? ]",
/** ::NOTICE::
Deprecating everything below this line.
**/
// {0} is the location of where the definition name will be inserted
// ex: directive
"match_expression": "((^[ \\\\t]*\\.{0}|^[ \\\\t]*{0}|angular\\.{0}|\\)\\.{0}|({match_app_names})\\.{0})[ ]*\\([ ]*[\"\\'])([\\w\\.\\$]*)([\"\\'])",
// what group to expect the name in
// ex: module('myApp')
// myApp is currently in group 3 of the current 'match_expression'
"match_expression_group": 4,
// Good for debugging if you're wanting to modify the scope options below
// prints scopes to the console on each on_query_completion event
"show_current_scope": false,
//indexing your project should get you more updated completions
"enable_AngularUI_directives": false,
// set to true to only show completions when ALL scopes are matched
"ensure_all_scopes_are_matched": false,
// defines what scopes to show completions in based on cursor placement in current buffer
"attribute_defined_scopes": [
"text.html meta.tag punctuation.definition.tag",
"entity.other.attribute-name.html",
"attibutes.tag.jade",
"meta.section.attributes.haml",
"text.html meta.tag.inline",
"text.html.basic meta.tag.block.any.html"
],
// defines a list of scopes that will should be avoided
// such as no completions within double quotes
"attribute_avoided_scopes": [
"string.quoted.double.html",
"source.css"
],
// defines what scopes component completions reside in
"component_defined_scopes": [
"text.html.basic - source.php.embedded.block.html",
// Allows completions when in partial HTML files
"text.html.basic invalid.illegal.bad-angle-bracket.html",
"source.jade",
"text.haml"
]
}