fix working directory issues

This commit is contained in:
Ray Elliott 2026-01-12 19:24:41 +00:00
commit 4e9e22da00
6 changed files with 21 additions and 1 deletions

View file

@ -9,6 +9,9 @@ vim.g.loaded_node_provider = 0
-- Used by netrw navigation to return to project root after following symlinks
vim.g.project_root = vim.fn.getcwd()
-- Prevent automatic directory changes when switching files
vim.opt.autochdir = false -- Keep working directory at project root
-- Enable project-local configuration files
vim.opt.exrc = true -- Load .nvim.lua from project root
vim.opt.secure = true -- Prompt before loading untrusted files