add sql options docs

This commit is contained in:
arthur 2024-06-22 12:07:29 +08:00
parent b47c65f408
commit 632f680241

View file

@ -1,3 +1,24 @@
if lazyvim_docs then
-- Automatically configure connections without needing to manually input them each time.
vim.g.dbs = {
dev = "Replace with your database connection URL.",
staging = "Replace with your database connection URL.",
}
-- or
vim.g.dbs = {
{ name = "dev", url = "Replace with your database connection URL." },
{ name = "staging", url = "Replace with your database connection URL." },
}
-- NOTICE: Replace yourself path for module
-- You can set your secrets directly through a Lua table, for example:
vim.g.dbs = require("secrests/db-env")
-- Alternatively, you can also use other ways to inject your environment variables.
-- After all, please make sure to protect your secrets and add them to your `.gitignore` file.
end
local sql_ft = { "sql", "mysql", "plsql" }
return {