added packer script. made plugin configs not error out when no plugin

This commit is contained in:
2025-05-26 16:00:35 -05:00
parent 571effe737
commit e6577b4106
12 changed files with 270 additions and 229 deletions

View File

@@ -1,30 +1,33 @@
local highlight = {
"RainbowRed",
}
local ok, _ = pcall(require, 'ibl')
if ok then
local highlight = {
"RainbowRed",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#702ec0" })
end)
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#702ec0" })
end)
require('ibl').setup {
indent = {
char = '|',
highlight = highlight,
},
scope = {
show_start = false,
show_end = false,
show_exact_scope = false,
},
exclude = {
filetypes = {
'help',
'packer',
'undotree',
'diff',
require('ibl').setup {
indent = {
char = '|',
highlight = highlight,
},
},
}
scope = {
show_start = false,
show_end = false,
show_exact_scope = false,
},
exclude = {
filetypes = {
'help',
'packer',
'undotree',
'diff',
},
},
}
end