diff --git a/lua/neogit/lib/buffer.lua b/lua/neogit/lib/buffer.lua index fbe2d9311..e81644aba 100644 --- a/lua/neogit/lib/buffer.lua +++ b/lua/neogit/lib/buffer.lua @@ -711,6 +711,8 @@ function Buffer.create(config) buffer:set_buffer_option("buftype", config.buftype or "nofile") end + buffer:set_window_option("wrap", false) + if config.filetype then logger.debug("[BUFFER:" .. buffer.handle .. "] Setting filetype: " .. config.filetype) buffer:set_filetype(config.filetype) @@ -783,7 +785,6 @@ function Buffer.create(config) end buffer:set_window_option("spell", config.spell_check or false) - buffer:set_window_option("wrap", false) buffer:set_window_option("foldmethod", "manual") -- TODO: Need to find a way to turn this off properly when unloading plugin -- buffer:set_window_option("winfixbuf", true)