nanotee / sqls.nvim

Neovim plugin for sqls that leverages the built-in LSP client
MIT License
189 stars 10 forks source link

No Sqls* command available, yet everything seems to be installed/configured correctly #26

Open manumoreno opened 1 year ago

manumoreno commented 1 year ago

I'm having an interesting problem. I know I'm connecting to the database just fine (because I can change a DB parameter to make it fail and then revert back). Also, the sqls binary is installed and in the PATH. The problem I'm having is that no Sqls* command works -- they don't show as possible commands at the ":" prompt in nvim. Has anybody else experienced this problem and, if so, how can I go about resolving it?

mavix21 commented 1 year ago

I just installed it and I have the exact same problem as you. :(

nanotee commented 1 year ago

These commands are buffer-local, the plugin creates them when the LSP client attaches to a buffer. They should appear when you open a SQL file

manumoreno commented 1 year ago

Thanks @nanotee! I did notice that my the LSP client was having problems attaching to the active buffer. That said, my problem got resolved on its own after a few days. I still don't know what changed behind the scenes.

BTW, great plugin! It's proving to be very useful. I was wondering if the show tables function might work at some point. I don't recall if PostgreSQL is not supported or that functionality is not yet fully implemented.

nanotee commented 1 year ago

I don't think it's going to be implemented any time soon since the lighttiger2505/sqls repository has been archived, unless someone forks and takes over the project

guilhas07 commented 6 months ago

I don't think it's going to be implemented any time soon since the lighttiger2505/sqls repository has been archived, unless someone forks and takes over the project

It seems someone forked it.

JDOsborne1 commented 5 months ago

my problem got resolved on its own after a few days. I still don't know what changed behind the scenes.

This is my exact issue also, has anyone found a fix?

I have it set up to use a SQLite temporary DB as my test bed, and the LSP seems to connect fine, and the keyword autocomplete/highlighting and format file works. But none of the :Sqls* family of commands seem to have registered. I am new to LSP configs in nvim so I may have missed something obvious.

Any guidance appreciated!

nanotee commented 5 months ago

@JDOsborne1 could you please share your lspconfig configuration?