LV4AD/Ch/04 Opening Files/02 Root vs Cwd
- 4.2. The Difference Between "Root" and "Cwd"
- LazyVim/Picker/File root vs cwd — LSP may detect nested roots (e.g. Cypress
tsconfig.json) When <leader>ff or <Space><Space> shows files from an unexpected nested LSP root, what Keyshort opens LazyVim/Picker/File in current working directory mode? card
<leader>fF- use when the detected root (e.g. a Cypress subfolder) is narrower than the project you actually want to search
What vim command changes the working directory for only the current window? card
:lcd — "local change directory"- lets different windows have different working directories (e.g. full-stack frontend + backend)
What command prints the current working directory? card
:pwd — "print working directory"- same as Bash/zsh
pwd; shows the cwd Neovim uses for :e and pickers scoped to cwd