sqls.nvim
sqls.nvim copied to clipboard
"no database connection" on start of sqls
I currently use AstroNvim and the server is always emitting the "no database connection" error message on start, but the server does work regardless.
Steps to reproduce the behaviour:
Use a AstroNvim with lspconfig config. An example I use to set init.lua in neovim 0.7.2 is:
-- Extend LSP configuration
lsp = {
...
["server-settings"] = {
sqls = {
settings = {
sqls = {
connections = {
{
driver = "postgresql",
dataSourceName = "postgres://[email protected]:5432/postgres?sslmode=disable",
},
},
},
},
},
},
},
Expected behaviour:
I don't expect this message to show up. The database should be connected.
Versions:
OS Version: macOS Monterey 12.5.1 sqls Version sqls Version:0.2.22