Diagnostics¶
Diagnostics are powered by tree-sitter-teradata and surface syntax (grammar) errors as ERROR diagnostics directly in Neovim.
- Standard Neovim Integration: Errors appear through the standard
vim.diagnosticinterface — virtual text, signs in the gutter, quickfix/location lists (:lopen), andvim.diagnostic.get()all work out of the box. - Real-Time Linting: Diagnostics refresh automatically on
TextChanged,BufEnter, andBufWritePost. - Scope: Detects SQL grammar errors as you type.
- Filetypes: Active on filetypes specified in
ft(default:.sql,.teradata) or controlled viasql_detection.
require('vim-teradata').setup({
ft = { 'sql', 'teradata' },
})
Note: If the Teradata Tree-sitter parser is not installed, syntax diagnostics and schema-aware completion will be disabled. Run
:checkhealth vim-teradatato verify.
Demo¶
Examples¶
