DocsAutocompleteHandbookCustomizing 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 overriden by displayName
  name: "install",
  // customise 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: "😃",
};

On this page