Skip to content

Commit 2be9ff5

Browse files
committed
Make sure FileType has called prior to touch syntax
1 parent 0030f77 commit 2be9ff5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/fern/internal/viewer.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ endfunction
104104

105105
function! s:BufReadCmd() abort
106106
let helper = fern#helper#new()
107+
setlocal filetype=fern
107108
call helper.fern.renderer.syntax()
108109
call fern#hook#emit('renderer:syntax', helper)
109110
let root = helper.sync.get_root_node()

0 commit comments

Comments
 (0)