This is the easiest way.
- Install the official Github CLI
- Login to Github using it
- Ensure your token has the
gistOAuth scope (it should, by default):
gh auth status- Copy your token to the clipboard:
macOS:
gh auth token | pbcopyLinux:
gh auth token | xclip -selection clipboardWindows:
gh auth token | clip- Create a new token at Github.
- Ensure it has Gists permission under the Account.
- Perform all of the steps from the previous section to land this token into your Settings Sync LSP server configuration.