Skip to content
Merged
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
7 changes: 2 additions & 5 deletions lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ end
return {
setup = function(conf)
conf = conf or {}
opt.exclude = vim.tbl_extend(
'force',
{ 'dashboard', 'lazy', 'help', 'markdown', 'nofile', 'terminal', 'prompt' },
conf.exclude or {}
)
opt.exclude = { 'dashboard', 'lazy', 'help', 'markdown', 'nofile', 'terminal', 'prompt' }
vim.list_extend(opt.exclude, conf.exclude or {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vim.list_extend(opt.exclude, conf.exclude or {})
vim.list_extend({ 'dashboard', 'lazy', 'help', 'markdown', 'nofile', 'terminal', 'prompt' }, conf.exclude or {})

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be inline.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim.list_extend mutates the first list and does not return the merged list

Copy link
Member

@glepnir glepnir Jun 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aha sry I forge it :)

opt.config.virt_text = { { conf.char or '│' } }
set_provider(ns, { on_win = on_win, on_line = on_line })
end,
Expand Down