mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update message
This commit is contained in:
parent
8b60aea57a
commit
da1ce6c243
1 changed files with 8 additions and 11 deletions
|
|
@ -1,32 +1,29 @@
|
|||
if lazyvim_docs then
|
||||
-- Automatically configure connections without needing to manually input them each time.
|
||||
-- The setup below will automatically configure connections without the need for manual input each time.
|
||||
|
||||
-- Example configuration using dictionary with keys:
|
||||
-- vim.g.dbs = {
|
||||
-- dev = "Replace with your database connection URL.",
|
||||
-- staging = "Replace with your database connection URL.",
|
||||
-- }
|
||||
-- or
|
||||
-- Example configuration using a list of dictionaries:
|
||||
-- vim.g.dbs = {
|
||||
-- { name = "dev", url = "Replace with your database connection URL." },
|
||||
-- { name = "staging", url = "Replace with your database connection URL." },
|
||||
-- }
|
||||
|
||||
-- You can set your those configuration through a Lua table. For example:
|
||||
-- Create a `.lazy.lua` file in your project and set your connections in it like this:
|
||||
-- or
|
||||
-- Create a `.lazy.lua` file in your project and set your connections like this:
|
||||
-- ```lua
|
||||
-- vim.g.dbs = {...}
|
||||
--
|
||||
-- return {}
|
||||
-- ```
|
||||
|
||||
local ok = pcall(dofile, vim.fn.getcwd() .. "/.lazy.lua")
|
||||
-- Alternatively, you can also use other methods to inject your environment variables.
|
||||
|
||||
if not ok then
|
||||
vim.g.dbs = {}
|
||||
end
|
||||
|
||||
-- Alternatively, you can also use other ways to inject your environment variables.
|
||||
|
||||
-- After all, please make sure to add `.lazy` to your global `.gitignore` file.
|
||||
-- Finally, please make sure to add `.lazy.lua` to your `.gitignore` file to protect your secrets.
|
||||
end
|
||||
|
||||
local sql_ft = { "sql", "mysql", "plsql" }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue