mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
add sql options docs
This commit is contained in:
parent
b47c65f408
commit
632f680241
1 changed files with 21 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue