Skip to content

adtyap26/sql_docs.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

sql-docs.nvim

A Neovim plugin that provides SQL documentation when pressing K over SQL keywords.

Features

  • 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

Installation

Using lazy.nvim

{
  "adtyap26/sql_docs.nvim",
  lazy = false,
  config = function()
    require("sql-docs").setup()
  end
}

Configuration

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
})

Usage

  1. Open a SQL file
  2. Place your cursor over a SQL keyword (e.g., SELECT, FROM, WHERE)
  3. Press K to view documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages