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 = {
2121 bufnr = nil ,
2222 winnr = nil ,
2323 buf_options = {
24- ' sidescroll=5' ,
2524 ' noswapfile' ,
26- ' splitbelow' ,
27- ' noruler' ,
28- ' noshowmode' ,
29- ' noshowcmd'
3025 },
3126 win_options = {
3227 relativenumber = false ,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ local function is_file_readable(fname)
8989 return true
9090end
9191
92- local function find_file ()
92+ function M . find_file ()
9393 local bufname = api .nvim_buf_get_name (api .nvim_get_current_buf ())
9494 if not is_file_readable (bufname ) then return end
9595
122122
123123function M .buf_enter ()
124124 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 ()
127127 end
128128end
129129
You can’t perform that action at this time.
0 commit comments