-
Hi, The difficulty I have is understanding what kind items cmp accepts. One item would be 'label' which I understand to be The format of this JSON file I copied from the rafamadriz /friendly-snippets json files inside snippet folder. So far the result I get is nothing. 👎 Expected results would be 'MediaItem reaper.AddMediaItemToTrack' contents of 'prefix:' for label, what's in the 'body' for completion (snippetable) and the content of 'description:' for documentation. How should I go about doing this please? P.S I have already added the source to the cmp config and confirmed that the default template you provided for 'month' works. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
For anyone looking for answers: '- #input' <-- is for replacing what you already typed with a completion rather than completion concatenating on to what you typed. the definition of things like 'label' and 'InsertTextMode' go see LSP Spec at: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ |
Beta Was this translation helpful? Give feedback.
-
I created a plugin to parse JSON and extract fields to be used for completions, check it out joe-dil/json-cmp |
Beta Was this translation helpful? Give feedback.
For anyone looking for answers:
'- #input' <-- is for replacing what you already typed with a completion rather than completion concatenating on to what you typed.
the definition of things like 'label' and 'InsertTextMode' go see LSP Spec at: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/