diff options
| author | saher <msaher.shair@gmail.com> | 2025-04-02 18:17:15 +0300 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2026-08-04 20:09:48 +0200 |
| commit | ea3868bcf99bbf381d22c06614bd7c6f4de55472 (patch) | |
| tree | c82801db32ceb061849fbc7f24d3ca663c3c0aeb /runtime/lua/vim/_stringbuffer.lua | |
| parent | 838f130e6a0b018853c63e7908f98e53a2b7fa7e (diff) | |
| download | rneovim-ea3868bcf99bbf381d22c06614bd7c6f4de55472.tar.gz rneovim-ea3868bcf99bbf381d22c06614bd7c6f4de55472.tar.bz2 rneovim-ea3868bcf99bbf381d22c06614bd7c6f4de55472.zip | |
feat(editor): `:bcd` changes buffer-local directory
Problem:
No way to set a buffer-local directory.
Use-cases:
- "Root dir" for LSP (and the "project" concept).
- `:terminal` OSC 7
Solution:
Add `:bcd` command.
- Extend `getcwd()` to take a third arg; `getcwd(-1, -1, bunfr)` returns
the buffer-local working directory.
- Buffer-local directories have less priority than window-local
ones, and more priority than tab-local ones.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions