Skip to content

Don't sort candidates #31

@mssdvd

Description

@mssdvd

Is it possible to not sort company's candidates?
Jedi returns the normal objects first and then the magical ones instead company shows them in reverse.
I think is better to keep what jedi provides.
company
image

completion-at-point with ivy
image

Config:

;; company
;; https://company-mode.github.io/
(use-package company
  :delight
  :defer 1
  :bind
  ([remap indent-for-tab-command] . company-indent-or-complete-common)
  ([M-tab] . company-indent-or-complete-common)
  ("C-c y" . company-yasnippet)
  (:map company-active-map
        ([tab] . company-complete-common-or-cycle)
        ([M-tab] . company-complete-common-or-cycle))
  :config
  (setq company-tooltip-align-annotations t
        company-show-numbers t
        company-minimum-prefix-length 2)
  (company-tng-configure-default)
  (global-company-mode)
  (defun add-pcomplete-to-capf ()
    (add-hook 'completion-at-point-functions 'pcomplete-completions-at-point nil t))
  :hook (org-mode . add-pcomplete-to-capf))

;; anaconda-mode
;; https://github.com/proofit404/anaconda-mode
(use-package anaconda-mode
  :delight
  :hook
  (python-mode)
  (python-mode . anaconda-eldoc-mode))

;; company-anaconda
;; https://github.com/proofit404/company-anaconda
(use-package company-anaconda
  :after (anaconda-mode company)
  :config (add-to-list 'company-backends '(company-anaconda :with company-capf)))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions