   (if (not (file-remote-p default-directory))
       (setq default-directory (cond
                                ((not (eq (project-current) nil))
-                                (project-root (project-current)))
+                                (car (project-roots (project-current))))
                                (t "~/")))))
 (add-hook 'find-file-hook 'meain/set-proper-default-dir)
 

(use-package project
  :straight t
  :defer t
  :commands (project-switch-project project-find-file
                                    project-current):config
  (defun meain/project-name ()
    (file-name-nondirectory (directory-file-name (project-root (project-current)))))
  :init (progn
          (evil-leader/set-key "p" 'project-switch-project)
          (define-key evil-normal-state-map (kbd "<RET>") 'project-find-file)))

                          (file-relative-name (if (equal major-mode 'dired-mode)
                                                  default-directory
                                                buffer-file-name)
                                              (car (project-roots (project-current))))
                          (if (or no-linenumber
                                  (equal major-mode 'dired-mode))
                              ""
