File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ local default = {
43
43
throttle_delay_ms = 300 , -- Wait 300ms between updates
44
44
ignore_patterns = {}, -- No ignore patterns by default
45
45
},
46
- snippet = {
47
- path = ' ' ,
48
- priority = 200 ,
49
- },
46
+ snippet = ' ' ,
50
47
}
51
48
52
49
-- @type PhoenixConfig
@@ -546,7 +543,7 @@ function Snippet:get_completions(prefix)
546
543
end
547
544
548
545
table.insert (results , {
549
- label = vim . list_contains ( special , vim . bo [ 0 ]. filetype ) and ' • ' .. trigger or trigger ,
546
+ label = trigger ,
550
547
kind = 15 ,
551
548
insertText = insert_text ,
552
549
documentation = {
@@ -559,7 +556,7 @@ function Snippet:get_completions(prefix)
559
556
.. ' \n ```' ,
560
557
},
561
558
detail = ' Snippet: ' .. (snippet_data .description or ' ' ),
562
- sortText = string.format (' %03d%s ' , Config . snippet . priority or 200 , trigger ),
559
+ sortText = string.format (' 000%s ' , trigger ),
563
560
insertTextFormat = 2 ,
564
561
})
565
562
end
Original file line number Diff line number Diff line change 33
33
--- @field throttle_delay_ms number Delay between processing updates (milliseconds ). Prevents excessive CPU usage during rapid changes
34
34
--- @field ignore_patterns string[] Patterns for files /directories to ignore during scanning. Improves performance by skipping irrelevant items
35
35
36
- --- @class SnippetConfig
37
- --- @field path string
38
- --- @field priority number
39
-
40
36
--- Main configuration for Phoenix
41
37
--- @class PhoenixConfig
42
38
--- @field filetypes string[] List of filetypes to enable Phoenix for. Use {' *' } for all filetypes
43
39
--- @field dict DictionaryConfig Settings controlling the core dictionary behavior
44
40
--- @field completion CompletionConfig Settings controlling the core dictionary behavior
45
41
--- @field cleanup CleanupConfig Settings controlling how and when dictionary cleanup occurs
46
42
--- @field scanner ScannerConfig Settings controlling file system scanning behavior
47
- --- @field snippet SnippetConfig
43
+ --- @field snippet string
You can’t perform that action at this time.
0 commit comments