DocsCustomizing suggestions

Customizing Suggestions

You can customize suggestions. View the full specification for a Suggestion Object here: https://withfig.com/docs/autocomplete/api

Suggestion Object

Some examples:

const installSuggestion: Fig.Suggestion = {
  // the token used for Fig's parser. Will also be text displayed if not overridden by displayName
  name: "install",
  // customize the text displayed for a given suggestion
  displayName: "Install an NPM package 📦",
  // change what is inserted when the users selects something
  insertValue: "install ",
  description: "Install a package",
  icon: "😃",
};