Skip to content

Commit 34cb28d

Browse files
committed
fix: make textwrap customizable inside neogit buffers
1 parent 6d1bd94 commit 34cb28d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neogit/lib/buffer.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,8 @@ function Buffer.create(config)
711711
buffer:set_buffer_option("buftype", config.buftype or "nofile")
712712
end
713713

714+
buffer:set_window_option("wrap", false)
715+
714716
if config.filetype then
715717
logger.debug("[BUFFER:" .. buffer.handle .. "] Setting filetype: " .. config.filetype)
716718
buffer:set_filetype(config.filetype)
@@ -783,7 +785,6 @@ function Buffer.create(config)
783785
end
784786

785787
buffer:set_window_option("spell", config.spell_check or false)
786-
buffer:set_window_option("wrap", false)
787788
buffer:set_window_option("foldmethod", "manual")
788789
-- TODO: Need to find a way to turn this off properly when unloading plugin
789790
-- buffer:set_window_option("winfixbuf", true)

0 commit comments

Comments
 (0)