                 :action #'ivy-completion-in-region-action
                 :caller 'counsel-company)
       )))
+(advice-add 'counsel-company :around #'danylo/counsel-company)
 
 ;;;###autoload
 (defun danylo/expand-unicode (orig-fun &rest args)

	     buffer
	     `((display-buffer-reuse-window display-buffer-below-selected)
	       (window-height . ,danylo/num-completion-candidates))))))
      )
    )
  )

;;;###autoload
(defun danylo/side-window-tmp ()

;; same buffer. Otherwise, the jump happens in the wrong window than the one
;; the user was browsing.

;;;###autoload
(defun danylo/imenu-list-goto-entry (orig-fun &rest args)
  "Switch to the original buffer and display the entry under point.
Patched to use original **window** instead of buffer."
  (interactive)
