For Python coding I use Elpy package which uses Company as completion framework.

Since I don't like automatic pop-ups I set my completion function to execute only when I explicitly ask for the completion suggestions with C-n keybinding. Unfortunately the setting for disabling a pop-up completion window is not working after pressing class member access operators such as ., ->, ::.

After looking through company-mode settings I found that company-semantic and company-clang have a toggle for switching on and off the automatic completion window. I set those to nil, but unfortunately there is no change in the behaviour. I used both 'customize' panel and manual assignment in the config.

Here is my config:

(use-package company
  :ensure t
  :hook (prog-mode . company-mode)
  :config
  (setq company-idle-delay nil  ;; works as expected, completion is not invoked
        company-semantic-begin-after-member-access nil  ;; still pops-up, no change :(
        company-clang-begin-after-member-access nil     ;; no change either :(
        company-minimum-prefix-length 3
        company-selection-wrap-length 1
        company-selection-wrap-around t)
  (evil-collection-define-key 'insert 'company-mode-map
    (kbd "C-n") 'company-complete)) ;; invokes completion manually 

And example picture showing spot where this issue occurs: enter image description here

0

There are 0 best solutions below