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 = {
4343 throttle_delay_ms = 300 , -- Wait 300ms between updates
4444 ignore_patterns = {}, -- No ignore patterns by default
4545 },
46- snippet = {
47- path = ' ' ,
48- priority = 200 ,
49- },
46+ snippet = ' ' ,
5047}
5148
5249-- @type PhoenixConfig
@@ -546,7 +543,7 @@ function Snippet:get_completions(prefix)
546543 end
547544
548545 table.insert (results , {
549- label = vim . list_contains ( special , vim . bo [ 0 ]. filetype ) and ' • ' .. trigger or trigger ,
546+ label = trigger ,
550547 kind = 15 ,
551548 insertText = insert_text ,
552549 documentation = {
@@ -559,7 +556,7 @@ function Snippet:get_completions(prefix)
559556 .. ' \n ```' ,
560557 },
561558 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 ),
563560 insertTextFormat = 2 ,
564561 })
565562 end
Original file line number Diff line number Diff line change 3333--- @field throttle_delay_ms number Delay between processing updates (milliseconds ). Prevents excessive CPU usage during rapid changes
3434--- @field ignore_patterns string[] Patterns for files /directories to ignore during scanning. Improves performance by skipping irrelevant items
3535
36- --- @class SnippetConfig
37- --- @field path string
38- --- @field priority number
39-
4036--- Main configuration for Phoenix
4137--- @class PhoenixConfig
4238--- @field filetypes string[] List of filetypes to enable Phoenix for. Use {' *' } for all filetypes
4339--- @field dict DictionaryConfig Settings controlling the core dictionary behavior
4440--- @field completion CompletionConfig Settings controlling the core dictionary behavior
4541--- @field cleanup CleanupConfig Settings controlling how and when dictionary cleanup occurs
4642--- @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