Skip to content

exclude_filetypes check wrong #47

Closed
@davidosomething

Description

Describe the bug

mods currently check for

    if (not self.options.enable) or self.options.exclude_filetypes[vim.bo.filetype] then

so need to use this format for exclude_filetypes:

exclude_filetypes = {
  sh = true
}

not

exclude_filetypes = { "sh" }

as stated in https://github.com/shellRaining/hlchunk.nvim/blob/main/docs/en/indent.md

maybe change to

vim.tbl_contains(exclude_filetypes, vim.bo.filetype)

or update docs to use { ft1 = true, ft2 = true }

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions