 
 ;;; Magit
 ;; getting errors until I installed magit-popup and with-editor
-(use-package magit-popup
-  :ensure t ; make sure it is installed
+(use-package magit-popup ; make sure it is installed
   :demand t) ; make sure it is loaded
-(use-package with-editor
-  :ensure t ; make sure it is installed
+(use-package with-editor ; make sure it is installed
   :demand t) ; make sure it is loaded
 (use-package magit
   :config
   (setq magit-diff-refine-hunk t)
   (setq magit-ediff-dwim-show-on-hunks t)
-  (setq magit-diff-refine-ignore-whitespace nil)
-  :ensure t)
+  (setq magit-diff-refine-ignore-whitespace nil))
 
 
 ;;; git gutter
 (use-package git-gutter
-  :ensure t
   :config
   (setq git-gutter:disabled-modes '(org-mode org-indent-mode))
   (global-git-gutter-mode +1))

;;; rest client
;; restclient package
(use-package restclient
  :ensure t
  :mode (("\\.http\\'" . restclient-mode)
         ("\\.rest\\'" . restclient-mode))
  :bind (:map restclient-mode-map
              ("C-c C-f" . json-mode-beautify)))
;; autocomplete in restclient
(use-package company-restclient
  :ensure t
  :config
  (add-to-list 'company-backends 'company-restclient))

;;; better json experience
(use-package json-mode
  :ensure t)
;; counsel-jq for real time jq json filter
(use-package counsel-jq
  :ensure t
  :config
  (with-eval-after-load "json-mode"
    (define-key json-mode-map (kbd "C-c C-j") #'counsel-jq)))


;;; Which Key
(use-package which-key
  :init
  (setq which-key-separator " ")
  (setq which-key-prefix-prefix "+")
