Skip to content

Commit

Permalink
Make sure FileType has called prior to touch syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed Jul 29, 2020
1 parent 0030f77 commit 2be9ff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/fern/internal/viewer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ endfunction

function! s:BufReadCmd() abort
let helper = fern#helper#new()
setlocal filetype=fern
call helper.fern.renderer.syntax()
call fern#hook#emit('renderer:syntax', helper)
let root = helper.sync.get_root_node()
Expand Down

0 comments on commit 2be9ff5

Please sign in to comment.