Skip to content

Commit

Permalink
Don't override company-format-margin-function
Browse files Browse the repository at this point in the history
The default is smarter now, so this is unnecessary.
  • Loading branch information
purcell committed May 13, 2021
1 parent 47b66ae commit 55c2d42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lisp/init-company.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
(dolist (backend '(company-eclim company-semantic))
(delq backend company-backends))
(diminish 'company-mode)
(defun sanityinc/company-icons-margin-auto (&rest args)
(apply (if (eq 'dark (frame-parameter nil 'background-mode))
#'company-vscode-dark-icons-margin
#'company-vscode-light-icons-margin)
args))
(setq company-format-margin-function #'sanityinc/company-icons-margin-auto)
(define-key company-mode-map (kbd "M-/") 'company-complete)
(define-key company-mode-map [remap completion-at-point] 'company-complete)
(define-key company-mode-map [remap indent-for-tab-command] 'company-indent-or-complete-common)
Expand Down

0 comments on commit 55c2d42

Please sign in to comment.