From dd4f49df3947fd9f44771181b2f9e64f535edb55 Mon Sep 17 00:00:00 2001 From: Ian Homer Date: Fri, 11 Oct 2024 17:08:41 +0100 Subject: [PATCH] Set root directory to CWD --- dotfiles/nvim/.config/nvim/lua/config/options.lua | 2 ++ dotfiles/nvim/.config/nvim/lua/plugins/neo-tree.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/dotfiles/nvim/.config/nvim/lua/config/options.lua b/dotfiles/nvim/.config/nvim/lua/config/options.lua index 3ea1454f..20bd1fcc 100644 --- a/dotfiles/nvim/.config/nvim/lua/config/options.lua +++ b/dotfiles/nvim/.config/nvim/lua/config/options.lua @@ -1,3 +1,5 @@ -- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here + +vim.g.root_spec = { "cwd" } diff --git a/dotfiles/nvim/.config/nvim/lua/plugins/neo-tree.lua b/dotfiles/nvim/.config/nvim/lua/plugins/neo-tree.lua index 405aecaf..d5cb6bdb 100644 --- a/dotfiles/nvim/.config/nvim/lua/plugins/neo-tree.lua +++ b/dotfiles/nvim/.config/nvim/lua/plugins/neo-tree.lua @@ -2,6 +2,7 @@ return { "nvim-neo-tree/neo-tree.nvim", opts = { filesystem = { + bind_to_cwd = true, filtered_items = { visible = true, },