 
       :desc "Format buffer"
       "-" (lambda () (interactive)
-              (call-interactively 'call-clang-format-on-current-buffer)))
+            (call-interactively 'call-clang-format-on-current-buffer)))
 
 ;; Prevents huge minibuffer popup when writing
 (setq! lsp-signature-render-documentation 't)

;; (define-key evil-normal-state-map (kbd "C-x h f") 'describe-function)
;; (define-key evil-normal-state-map (kbd "C-x h v") 'describe-variable)

; (define-key evil-normal-state-map (kbd "C-d") 'scroll-up-command)
; (define-key evil-normal-state-map (kbd "C-u") 'scroll-down-command)

;; Insert mode as well
;; Makes C-e behave same as in Emacs. C-a works out of the box
;; (define-key evil-motion-state-map (kbd "C-e") nil)

(map! :n "<left>" (lambda ()
                    (interactive)
                    (call-interactively 'evil-window-decrease-width)
                    (call-interactively 'evil-window-decrease-width)
                    (call-interactively 'evil-window-decrease-width)
                    (call-interactively 'evil-window-decrease-width)
                    (call-interactively 'evil-window-decrease-width)))

(map! :n "<right>" (lambda ()
                    (interactive)
                    (call-interactively 'evil-window-increase-width)
                    (call-interactively 'evil-window-increase-width)
                    (call-interactively 'evil-window-increase-width)
                    (call-interactively 'evil-window-increase-width)
                    (call-interactively 'evil-window-increase-width)))

;; (define-key evil-normal-state-map (kbd "<right>") (lambda () (interactive)
;;                                                 (call-interactively 'evil-window-increase-width)

(map! :v "-" #'lsp-format-region)

(map! :n "L" (lambda () (interactive)
               (call-interactively 'lsp-execute-code-action)))

(map! :n ",e" (lambda () (interactive)
                (call-interactively 'projectile-run-project "cargo run")))
