Skip to content

Getting pwd into statusline #359

Answered by shadmansaleh
smacz42 asked this question in Q&A
Discussion options

You must be logged in to vote

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}

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@smacz42
Comment options

Answer selected by smacz42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants