sqls.nvim icon indicating copy to clipboard operation
sqls.nvim copied to clipboard

"no database connection" on start of sqls

Open PhilVince96 opened this issue 2 years ago • 1 comments

Screenshot 2022-08-31 at 09 57 35 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

PhilVince96 avatar Aug 30 '22 21:08 PhilVince96