File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ function M.setup()
18
18
end ,
19
19
})
20
20
21
- define ({ " BufEnter" }, {
22
- group = " octo_autocmds" ,
23
- pattern = { " *" },
24
- callback = function ()
25
- local current_buffer = vim .api .nvim_buf_get_name (0 )
26
- if not current_buffer :match " ^octo://" then
27
- require (" octo" ).update_layout_for_current_file ()
28
- end
29
- end ,
30
- })
21
+ if config .values .use_local_fs then
22
+ define ({ " BufEnter" }, {
23
+ group = " octo_autocmds" ,
24
+ pattern = { " *" },
25
+ callback = function ()
26
+ local current_buffer = vim .api .nvim_buf_get_name (0 )
27
+ if not current_buffer :match " ^octo://" then
28
+ require (" octo" ).update_layout_for_current_file ()
29
+ end
30
+ end ,
31
+ })
32
+ end
31
33
32
34
define ({ " BufReadCmd" }, {
33
35
group = " octo_autocmds" ,
You can’t perform that action at this time.
0 commit comments