diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b85b51e..44d2aec4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - basics: add visual line and block commands - clojure: `"Cp` pastes result of last Conjure evaluation - basics: change project root with autocompletion +- basics: set directory root approaches ### Changed - ci: spell lychee & repository trufflehog linters warn only (false positives) diff --git a/docs/neovim-basics/file-buffer-window-tab.md b/docs/neovim-basics/file-buffer-window-tab.md index 8d7a3880..3ee9a36e 100644 --- a/docs/neovim-basics/file-buffer-window-tab.md +++ b/docs/neovim-basics/file-buffer-window-tab.md @@ -15,6 +15,14 @@ Use [Neo-tree.nvim](#using-neo-tree) to visually navigate and manage files using Use [Telescope](#telescope) to select files, typing a name narrows the file list. +!!! HINT "Set root directory in Neovim" + All file commands respect the currently set directory root for Neovim. + + The root is set to the current directory when opening a file. + + `:cd ~/new/directory/path` will change the current root to the new path. + + ++period++ in Neotree sets the root to the current directory (parent directory if on a file) ### Using Neo-tree