   (setq company-selection-wrap-around t)
   :config
   (global-company-mode 1))
+;; quickhelp for autocomplete
+(use-package company-quickhelp
+  :ensure t
+  :init
+  (setq company-quickhelp-delay 0)
+  :config
+  (company-quickhelp-mode 1))
 (with-eval-after-load 'company
   (define-key company-active-map (kbd "M-n") nil)
   (define-key company-active-map (kbd "M-p") nil)
   (define-key company-active-map (kbd "C-j") #'company-select-next)
   (define-key company-active-map (kbd "C-k") #'company-select-previous)
-  (define-key company-active-map [tab] nil)
-  (define-key company-active-map [return] #'company-complete-common))
-
-
+  (define-key company-active-map (kbd "<return>") #'company-complete-common-or-cycle))
+  ;; (define-key company-active-map [tab] nil)
+  ;; (define-key company-active-map (kbd "<return>") #'company-complete-selection))
+
+
+;; workspace
 (use-package perspective
   :ensure t
   :bind (("C-x b" . persp-switch-to-buffer*)

  :hook (typescript-mode . prettier-js-mode))

;; Language Server Protocol
(use-package eglot
  :ensure t)
;; eglot temporary fix
(defun project-root (project)
  (car (project-roots project)))
(add-hook 'go-mode-hook 'eglot-ensure)


;;; Text Editing visual

(tooltip-mode    -1)
;; menubar is actually useful in GUI
(unless (display-graphic-p)
  (xterm-mouse-mode 1)
  (menu-bar-mode   -1))


