File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,7 @@ M.Tree = {
21
21
bufnr = nil,
22
22
winnr = nil,
23
23
buf_options = {
24
- 'sidescroll=5',
25
24
'noswapfile',
26
- 'splitbelow',
27
- 'noruler',
28
- 'noshowmode',
29
- 'noshowcmd'
30
25
},
31
26
win_options = {
32
27
relativenumber = false,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ local function is_file_readable(fname)
89
89
return true
90
90
end
91
91
92
- local function find_file()
92
+ function M. find_file()
93
93
local bufname = api.nvim_buf_get_name(api.nvim_get_current_buf())
94
94
if not is_file_readable(bufname) then return end
95
95
122
122
123
123
function M.buf_enter()
124
124
update_root_dir()
125
- if vim.g.lua_tree_follow ~= 0 then
126
- find_file()
125
+ if vim.g.lua_tree_follow == 1 then
126
+ M. find_file()
127
127
end
128
128
end
129
129
You can’t perform that action at this time.
0 commit comments