fix working directory issues
This commit is contained in:
parent
6aeb4ae913
commit
4e9e22da00
6 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue