Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions lua/neogit/buffers/editor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function M:open(kind)
name = self.filename,
filetype = filetype,
load = true,
spell_check = true,
buftype = "",
kind = kind,
modifiable = true,
Expand Down
3 changes: 2 additions & 1 deletion lua/neogit/lib/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ end
---@field user_mappings table|nil
---@field autocmds table|nil
---@field user_autocmds table|nil
---@field spell_check boolean|nil
---@field initialize function|nil
---@field after function|nil
---@field on_detach function|nil
Expand Down Expand Up @@ -651,7 +652,7 @@ function Buffer.create(config)
vim.opt_local.fillchars:append("fold: ")
end)

buffer:set_window_option("spell", false)
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
Expand Down
Loading