Skip to content

Using the configuration file

hayper edited this page Oct 9, 2022 · 13 revisions

🔧 Settings

Prerequisites


To open the configuration file, use:

:CocConfig
Config (available options) Description Default
rpc.clientId Application ClientId. Change only if you known exactly what you're doing 768090036633206815
rpc.enabled Controls if the Discord Presence should show across all workspaces true
rpc.ignoreWorkspaces List of patterns to match workspace names that should prevent the extension from starting []
rpc.workspaceElapsedTime Controls if the RPC should display elapsed time for a workspace or a single file false
rpc.checkIdle Whether or not to check if you are still active or idle and react accordingly true
rpc.idleTimeout How long the window should be unfocused (in seconds) to either disable rich presence or display you as idle 300
rpc.idleText Custom string of the text displaying if you're idle when hovering over the small icon Idle
rpc.detailsEditing Custom string for the details section of the rich presence {workspace_folder} {problems}
rpc.detailsIdle Custom string for the details section of the rich presence when idling Idling
rpc.detailsViewing Custom string for the details section of the rich presence when viewing In {workspace_folder} {problems}
rpc.lowerDetailsEditing Custom string for the state section of the rich presence Working on {file_name}:{current_line}:{current_column}
rpc.lowerDetailsIdle Custom string for the state section of the rich presence when idling Idling
rpc.lowerDetailsViewing Custom string for the state section of the rich presence when viewing Viewing {file_name}
rpc.largeImage Custom string for the largeImageText section of the rich presence Editing a {LANG} file
rpc.smallImage Custom string for the smallImageText section of the rich presence {app_name} v${app_version}
rpc.showProblems Controls if the RPC should show the count of problems (warnings, errors) present in your workspace true
rpc.problemsText Custom string of the text displaying the amount of problems in your workspace - {count} problems found
rpc.lowerDetailsNotFound Custom string for the state section of the rich presence when no workspace is found No workspace.
rpc.useCWDAsFallback Controls if the RPC should use the current working directory as a fallback if no workspace is found. false
rpc.suppressNotifications Controls if info/warn/error messages are shown to the user true
rpc.buttonEnabled Enable a button on your presence with a link to the Git repository you're working in true
rpc.buttonActiveLabel The label to show on the button when the file you are currently editing is located in a Git repository. Set to null to disable View Repository
rpc.buttonInactiveLabel The label to show on the button when you are not editing a file in a Git repository. Set to null to disable. null
rpc.buttonInactiveUrl The URL of the button when you are not editing a file in a Git repository. Set to null to disable. null

Available Options:

rpc.detailsEditing

  • {empty} will be replaced with an empty space
  • {file_name} will be replaced with the current file name
  • {workspace_folder} will be replaced with the current workspace name, if any
  • {current_column} will get replaced with the current column of the current line
  • {current_line} will get replaced with the current line number
  • {total_lines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.

rpc.detailsIdle

  • {empty} will be replaced with an empty space.

rpc.detailsViewing

  • {nemptyull} will be replaced with an empty space
  • {file_name} will be replaced with the current file name
  • {workspace_folder} will be replaced with the current workspace name, if any
  • {current_column} will get replaced with the current column of the current line
  • {current_line} will get replaced with the current line number
  • {total_lines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace

rpc.lowerDetailsEditing

  • {empty} will be replaced with an empty space
  • {file_name} will be replaced with the current file name
  • {workspace_folder} will be replaced with the current workspace name, if any
  • {current_column} will get replaced with the current column of the current line
  • {current_line} will get replaced with the current line number
  • {total_lines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace.

rpc.lowerDetailsIdle

  • {empty} will be replaced with an empty space.

rpc.lowerDetailsViewing

  • {empty} will be replaced with an empty space
  • {file_name} will be replaced with the current file name
  • {workspace_folder} will be replaced with the current workspace name, if any
  • {current_column} will get replaced with the current column of the current line
  • {current_line} will get replaced with the current line number
  • {total_lines} will get replaced with the total line number
  • {problems} will be replaced with the count of problems (warnings, errors) present in your workspace

rpc.largeImage

  • {lang} will be replaced with the lowercased language ID
  • {Lang} will be replaced with the language ID, first letter being uppercase
  • {LANG} will be replaced with the uppercased language ID.

rpc.smallImage

  • {app_name} will get replaced with current application's name (NeoVim or Vim).
  • {app_version} will be replaced with the installed version of NeoVim or Vim.

rpc.problemsText

  • {count} will be replaced by the respective amount of problems.

rpc.lowerDetailsNotFound

  • {empty} will be replaced with an empty space
  • {current_line} will get replaced with the current line number
  • {total_lines} will get replaced with the total line number