nvim automatic highlight opened file

This commit is contained in:
Yan Lin 2025-08-16 01:15:47 +09:00
parent 77a02b1312
commit 7c59b09bbd

View file

@ -193,8 +193,15 @@
# Additional Lua configuration for plugins that need custom setup # Additional Lua configuration for plugins that need custom setup
extraConfigLua = '' extraConfigLua = ''
-- Nvim-tree setup with filters -- Nvim-tree setup with filters and auto-sync
require("nvim-tree").setup({ require("nvim-tree").setup({
sync_root_with_cwd = true,
respect_buf_cwd = true,
update_focused_file = {
enable = true,
update_root = true,
ignore_list = {},
},
filters = { filters = {
dotfiles = true, -- Hide dotfiles by default (H to toggle) dotfiles = true, -- Hide dotfiles by default (H to toggle)
git_ignored = false, -- Show gitignored files by default (I to toggle) git_ignored = false, -- Show gitignored files by default (I to toggle)
@ -202,6 +209,14 @@
".DS_Store", ".DS_Store",
}, },
}, },
view = {
width = 30,
side = "left",
},
renderer = {
highlight_opened_files = "all",
highlight_modified = "all",
},
}) })
-- Dictionary completion setup -- Dictionary completion setup