Skip to content

Explorer window inherits global spell option #338

@thefapinstructor

Description

@thefapinstructor

Bug

The explorer window does not set spell = false in its win_options, so it inherits the global spell setting. If the user has vim.opt.spell = true, filenames in the explorer get spell-checked and underlined, which is undesirable.

Fix

Add spell = false to the win_options in lua/codediff/ui/explorer/render.lua:

win_options = {
  number = false,
  relativenumber = false,
  cursorline = true,
  wrap = false,
  signcolumn = "no",
  foldcolumn = "0",
  spell = false, -- add this
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions