You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by remorses April 1, 2025
I want to use the Supabase database directly instead of a local database, to do that you could add support for a config option dbCommand to get the database uri via stdout
{
"$schema": "./docs/schemas/latest/schema.json",
// get the database uri using dotenv-cli npm package"dbCommand": "dotenv -- bash -c 'echo $DATABASE_URL'",
// get database uri using doppler"dbCommand": "doppler secrets get --plain DATABASE_URL",
}
This allows to get the database url using tools like Doppler or dotenv
The text was updated successfully, but these errors were encountered:
I would also love the ability to use InitializeParams and/or the workspace/didChangeConfiguration notification to configure this stuff, rather than be limited to a configuration file. The latter could enable switching database connections. Both options would then allow the client to determine the db parameters however they wanted, e.g. something along the lines of (in Neovim with lspconfig);
-- You could map this in on_attach, for example. Or use Telescope. Or whatever.functionswitch_database_connection(client--[[@type vim.lsp.Client]])
client.notify(
"workspace/didChangeConfiguration",
{
settings= { ...asabove... }
}
)
end
)
## What kind of change does this PR introduce?
It enables passing workspace settings via the
workspace/didChangeConfiguration notification. This in turn enables the
client to specify settings dynamically, rather than being limited to
configuration files. This is _a_ solution to #302. See example usage
(with lspconfig) here:
willruggiano/neovim.drv@9aa06ad.
## What is the current behavior?
There is none. The payload of this handler is currently ignored.
## What is the new behavior?
The configuration received by the handler is merged with the fs
configuration.
---------
Co-authored-by: Will Ruggiano <[email protected]>
Discussed in #292
Originally posted by remorses April 1, 2025
I want to use the Supabase database directly instead of a local database, to do that you could add support for a config option
dbCommand
to get the database uri via stdoutThis allows to get the database url using tools like Doppler or dotenv
The text was updated successfully, but these errors were encountered: