 ;; Put custom definitions in another file and don't load it
 (setq custom-file (locate-user-emacs-file "custom.el"))
 ;; (load custom-file)
+
+;; dont jump screen on cursor scroll
+(setq scroll-conservatively 101
+      scroll-margin 5)
 
 (setq-default
  indent-tabs-mode nil ; tabs are evil

    :init
    (counsel-mode 1)))

(use-package ivy-posframe
  :after ivy
  :init
  (setq ivy-posframe-display-functions-alist '((t . ivy-posframe-display-at-window-center)))
  (setq ivy-posframe-parameters
        '((left-fringe . 8)
          (right-fringe . 8)))
  (ivy-posframe-mode 1))

;;;
;;; Projects
;;;

(use-package all-the-icons
  :demand
  :init
  (unless (file-exists-p (expand-file-name "~/.local/share/fonts/all-the-icons.ttf"))
    (all-the-icons-install-fonts t))
  (use-package all-the-icons-ivy
    :demand
    :after (all-the-icons ivy)
