File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -711,11 +711,6 @@ function Buffer.create(config)
711
711
buffer :set_buffer_option (" buftype" , config .buftype or " nofile" )
712
712
end
713
713
714
- if config .filetype then
715
- logger .debug (" [BUFFER:" .. buffer .handle .. " ] Setting filetype: " .. config .filetype )
716
- buffer :set_filetype (config .filetype )
717
- end
718
-
719
714
if config .status_column then
720
715
buffer :set_buffer_option (" statuscolumn" , config .status_column )
721
716
buffer :set_buffer_option (" signcolumn" , " no" )
@@ -789,6 +784,11 @@ function Buffer.create(config)
789
784
-- buffer:set_window_option("winfixbuf", true)
790
785
end
791
786
787
+ if config .filetype then
788
+ logger .debug (" [BUFFER:" .. buffer .handle .. " ] Setting filetype: " .. config .filetype )
789
+ buffer :set_filetype (config .filetype )
790
+ end
791
+
792
792
if config .render then
793
793
logger .debug (" [BUFFER:" .. buffer .handle .. " ] Rendering buffer" )
794
794
buffer .ui :render (unpack (config .render (buffer )))
You can’t perform that action at this time.
0 commit comments