@@ -10,12 +10,14 @@ It's capable of:
10
10
- Load snipmate snippets.
11
11
- Load VSCode snippets from coc extensions.
12
12
- Load VSCode snippets from custom directories.
13
- - Load UltiSnips snippets from configuration folder.
13
+ - Load UltiSnips snippets from configured folder.
14
14
- Provide snippets as completion items.
15
15
- Provide expand and expandOrJump keymaps for snippet.
16
16
- Provide snippets list for edit snippet.
17
17
- Provide ` snippets.editSnippets ` command for edit user snippets of current filetype.
18
18
19
+ ** Note:** some features of ultisnips and snipmate format snippets not supported, checkout [ faq] ( #faq ) .
20
+
19
21
## Why?
20
22
21
23
- Use same keys for jump placeholder.
@@ -88,11 +90,6 @@ Some ultisnips features are **not** supported:
88
90
- [ ] Format related snippet options, including ` t ` , ` s ` and ` m ` (can't support).
89
91
- [ ] Snippet actions (can't support).
90
92
91
- ** Note** coc-snippets convert UltiSnips snippets to textmate snippets and send
92
- it to coc's snippets manager, format snippets after snippet insert will not be
93
- supported except for placeholder transform which also supported by textmate
94
- snippet.
95
-
96
93
## Options
97
94
98
95
- ` snippets.priority ` : priority of snippets source, default ` 90 ` .
@@ -132,11 +129,17 @@ snippet.
132
129
Python regular expression of UltiSnips would be converted to javascript regex, however some
133
130
patterns are not supported, including ` \u ` ` (?s) ` ` \Z ` ` (?(id/name)yes-pattern|no-pattern) ` .
134
131
135
- The failed snippets would not be loaded, you can checkout the errors by check output:
132
+ ## F.A.Q
133
+
134
+ ** Q:** How to check if a snippet successfully loaded?
136
135
137
- :CocCommand workspace.showOutput snippets
136
+ ** A: ** Use command ` :CocCommand workspace.showOutput snippets `
138
137
139
- ## F.A.Q
138
+ ** Q:** Some ultisnips snippet not works as expected.
139
+
140
+ ** A:** Reformat after change of placeholder feature can't be supported for now,
141
+ and some regex pattern can't be converted to javascript regex pattern, so the
142
+ snippet can be failed to load.
140
143
141
144
** Q:** Where to get snippets?
142
145
@@ -150,11 +153,11 @@ configuration from it.
150
153
151
154
** Q:** How to check jumpable or expandable at current position.
152
155
153
- ** A:** Use functions: ` coc#expandable() ` ` coc#jumpable() ` and ` coc#expandableOrJumpable() ` .
156
+ ** A:** Use functions provided by coc.nvim : ` coc#expandable() ` ` coc#jumpable() ` and ` coc#expandableOrJumpable() ` .
154
157
155
158
** Q:** It doesn't load snippets from [ vim-go] ( https://github.com/fatih/vim-go ) .
156
159
157
- ** A:** It use ` g:UltiSnipsSnippetDirectories ` which is not supported, you can
160
+ ** A:** It uses ` g:UltiSnipsSnippetDirectories ` which is not supported, you can
158
161
add settings:
159
162
160
163
```
0 commit comments