A Neovim plugin that provides SQL documentation when pressing K over SQL keywords.
- Shows documentation for common SQL keywords
- Displays syntax information
- Includes examples for complex keywords
- Closes with 'q' or 'Esc'
- Only activates in SQL files by default
Using lazy.nvim
{
"adtyap26/sql_docs.nvim",
lazy = false,
config = function()
require("sql-docs").setup()
end
}
You can customize the plugin with the following options:
require("sql-docs").setup({
filetypes = {"sql", "mysql", "pgsql"}, -- Filetypes where the plugin is active
mapping = "K", -- Key mapping to trigger documentation
})
- Open a SQL file
- Place your cursor over a SQL keyword (e.g., SELECT, FROM, WHERE)
- Press K to view documentation