Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Apr 28, 2024
1 parent bc95d41 commit ca11ddf
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,18 @@ local function indentline(opt)
})
end

local function setup(opt)
opt = vim.tbl_extend('force', {
char = '',
exclude = { 'dashboard', 'lazy', 'help', 'markdown' },
}, opt or {})

au('BufEnter', {
group = api.nvim_create_augroup('IndentMini', { clear = true }),
callback = function()
indentline(opt)
end,
})
end

return {
setup = setup,
setup = function(opt)
opt = vim.tbl_extend('force', {
char = '',
exclude = { 'dashboard', 'lazy', 'help', 'markdown' },
}, opt or {})

au('BufEnter', {
group = api.nvim_create_augroup('IndentMini', { clear = true }),
callback = function()
indentline(opt)
end,
})
end,
}

0 comments on commit ca11ddf

Please sign in to comment.