Skip to content

Commit

Permalink
feat: feed path through abbreviate-file-name
Browse files Browse the repository at this point in the history
closes #682.
  • Loading branch information
zhangou committed Dec 5, 2023
1 parent 38a565b commit 61366c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doom-modeline-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,8 @@ Return nil if no project was found."
(defun doom-modeline-project-root ()
"Get the path to the root of your project.
Return `default-directory' if no project was found."
(or (doom-modeline--project-root) default-directory))
(abbreviate-file-name
(or (doom-modeline--project-root) default-directory)))

(defun doom-modeline--format-buffer-file-name ()
"Get and format the buffer file name."
Expand Down

0 comments on commit 61366c5

Please sign in to comment.