Update netrw configuration for directory handling

Separate current and browsing directories to prevent LSP
and symlink navigation issues. Allow directory operations
on symlinks for better usability.
This commit is contained in:
Ray Elliott 2026-01-12 15:32:23 +00:00
parent d876425956
commit 9768ed395e
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ vim.g.netrw_alto = 0
-- 50% split when pressing 'p' -- 50% split when pressing 'p'
vim.g.netrw_winsize = 50 vim.g.netrw_winsize = 50
-- Keep the current directory and browsing directory synced -- Keep the current directory and browsing directory separate
-- This makes netrw respect your current working directory -- This prevents netrw from changing pwd and breaking LSP/symlink navigation
vim.g.netrw_keepdir = 0 vim.g.netrw_keepdir = 1
-- Open files in the same window (replace netrw buffer) -- Open files in the same window (replace netrw buffer)
-- Options: 0=same window, 1=horizontal split, 2=vertical split, 3=new tab, 4=previous window -- Options: 0=same window, 1=horizontal split, 2=vertical split, 3=new tab, 4=previous window