Getting pwd
into statusline
#359
-
I know that I can get the current directory with |
Beta Was this translation helpful? Give feedback.
Answered by
shadmansaleh
Sep 16, 2021
Replies: 0 comments 2 replies
-
TBH never felt like I needed a cwd indicator . I use project.nvim that puts my cwd at project root based on which file I'm in. If you want to place it in statusline or tabline with lualine you can use a simple function component like this lualine_c = {function() return vim.fn.getcwd() end} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
smacz42
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TBH never felt like I needed a cwd indicator . I use project.nvim that puts my cwd at project root based on which file I'm in.
If you want to place it in statusline or tabline with lualine you can use a simple function component like this