show the cwd #1459
mickro
started this conversation in
Configuration
show the cwd
#1459
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to show the current working directory into the status line.
As I am working mainly on a monorepo, it would be helpfull to have the "current projet name" represented by the cwd.
by default using LazyVim it is setup to
{ LazyVim.lualine.pretty_path() },which render
src/foo/bar/my-file.xxxI tryied this one:
{ vim.fn.getcwd() },but it gave me the git root directory:
my-monorepo-rootwhen I launch
nvim, I do it from the project dir:/my-monorepo-root//project-1Which is thecwd.Any idea how to get this
cwd?Beta Was this translation helpful? Give feedback.
All reactions