kostafey / ejc-sql

Emacs SQL client uses Clojure JDBC.
279 stars 29 forks source link

ejc-sql company-mode does't auto trigger completion after "." character. #140

Closed stardiviner closed 3 years ago

stardiviner commented 4 years ago

When I connect to PostgreSQL database server, I type in SELECT * FROM pg_catalog. When I use auto-complete it works fine will auto show candidates after .. But when I use company-mode, it does not auto trigger completion after the character .

kostafey commented 4 years ago

company-mode usage still in the experimental state. But yeah, it's a bug :).

stardiviner commented 4 years ago

Thanks for quick response. :) A temporary solution is set minimal prefix length of company-mode to 0. Like this:

(setq-local company-minimum-prefix-length 0)

Then it will complete after .. But it's a hack way.

kostafey commented 3 years ago

@stardiviner, please try the latest commit and set ejc-complete-on-dot to t: https://github.com/kostafey/ejc-sql#company-mode

stardiviner commented 3 years ago

Thanks @kostafey , confirmed solved. 😄