Skip to content

feat(status): add opt-in soft wrap option #1617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/neogit/lib/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down