cmp-dbee icon indicating copy to clipboard operation
cmp-dbee copied to clipboard

feature - remove schema name from table name completion

Open filipcujanovic opened this issue 5 months ago • 2 comments

Description

  • I have two databases in one mysql server. One is regular database, while the other one is a test database. I have two separate connections created for them. Since the completion is returning the schema name it can be frustrating since I have the same table names in both of them. I already manage the connections with a keybind in neovim so I can easily know to which one I'm connected to. It would be awesome if there is a config not create the completion item with schema.table format but just use table.

filipcujanovic avatar Jul 19 '25 21:07 filipcujanovic

Feel free to checkout the v2 branch if that helps!

MattiasMTS avatar Jul 19 '25 22:07 MattiasMTS

@MattiasMTS That is working! Thanks! Couple of notes:

  • In order to enable it in the nvim-cmp the source is now called dbee instead of cmp-dbee.
  • It would be awesome if the list is filtered against the current connected schema so you don't get double table names in the list. Currently it will list every table from every database instead of only the connected one.

filipcujanovic avatar Jul 20 '25 08:07 filipcujanovic