Skip to content

Commit

Permalink
feat(buffers): default bind_to_cwd = true, file hl to FileNameOpened
Browse files Browse the repository at this point in the history
  • Loading branch information
cseickel committed Jan 6, 2022
1 parent c31d6b8 commit 5178504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neo-tree/sources/buffers/components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local utils = require("neo-tree.utils")
local M = {}

M.name = function(config, node, state)
local highlight = config.highlight or highlights.FILE_NAME
local highlight = config.highlight or highlights.FILE_NAME_OPENED
local name = node.name
if node.type == "directory" then
if node:get_depth() == 1 then
Expand Down
1 change: 1 addition & 0 deletions lua/neo-tree/sources/buffers/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ local filesystem = {
--["<C-x>"] = "clear_filter",
}
},
bind_to_cwd = true,
before_render = function(state)
-- This function is called after the file system has been scanned,
-- but before the tree is rendered. You can use this to gather extra
Expand Down

0 comments on commit 5178504

Please sign in to comment.