Skip to content

Commit 5178504

Browse files
committed
feat(buffers): default bind_to_cwd = true, file hl to FileNameOpened
1 parent c31d6b8 commit 5178504

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/neo-tree/sources/buffers/components.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ local utils = require("neo-tree.utils")
1717
local M = {}
1818

1919
M.name = function(config, node, state)
20-
local highlight = config.highlight or highlights.FILE_NAME
20+
local highlight = config.highlight or highlights.FILE_NAME_OPENED
2121
local name = node.name
2222
if node.type == "directory" then
2323
if node:get_depth() == 1 then

lua/neo-tree/sources/buffers/defaults.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ local filesystem = {
2222
--["<C-x>"] = "clear_filter",
2323
}
2424
},
25+
bind_to_cwd = true,
2526
before_render = function(state)
2627
-- This function is called after the file system has been scanned,
2728
-- but before the tree is rendered. You can use this to gather extra

0 commit comments

Comments
 (0)