Skip to content

Configuration

All options are passed to require('vim-teradata').setup({ ... }).

users (array)

Define one or more connection profiles. The first is the default.

users = {
  {
    log_mech = 'TD2',   -- logon mechanism (e.g., TD2, LDAP)
    user    = 'USER',   -- username (password from tdwallet)
    tdpid   = 'HOST',   -- Teradata host or IP
  },
}

replacements (table)

String substitutions applied to queries before execution. Useful for portable scripts.

replacements = {
  ['${DB_NAME}'] = 'MY_DB',
}

retlimit (number)

Maximum number of rows returned per query. Helps control memory/latency.

retlimit = 10000  -- example

ft (array, optional)

Enable Teradata diagnostics (Tree‑sitter) only for specific filetypes.

ft = { 'sql' }