diff options
| author | bh <qn+git@excalibur.computer> | 2026-04-09 15:46:00 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-04-09 15:46:00 +0800 |
| commit | 6c81e38e15455fb3074d9d46c94ec2c951b5a382 (patch) | |
| tree | c103a81c733ff200b4114f3a1caee058c10f374e /lua/config/indent.lua | |
| parent | 0a67a5614c1716c8ccf46980e13826616aa70c28 (diff) | |
Fix indentation
Diffstat (limited to 'lua/config/indent.lua')
| -rw-r--r-- | lua/config/indent.lua | 69 |
1 files changed, 34 insertions, 35 deletions
diff --git a/lua/config/indent.lua b/lua/config/indent.lua index a73ee1c..af73787 100644 --- a/lua/config/indent.lua +++ b/lua/config/indent.lua @@ -1,41 +1,40 @@ -- ~/.config/nvim/lua/config/indent.lua return function() - local ibl = require("ibl") - local hooks = require("ibl.hooks") + local ibl = require("ibl") + local hooks = require("ibl.hooks") - -- Define your highlight colors - local highlight = { - "RainbowRed", - "RainbowYellow", - "RainbowBlue", - "RainbowOrange", - "RainbowGreen", - "RainbowViolet", - "RainbowCyan", - } + -- Define your highlight colors + local highlight = { + "RainbowRed", + "RainbowYellow", + "RainbowBlue", + "RainbowOrange", + "RainbowGreen", + "RainbowViolet", + "RainbowCyan", + } - -- Register hook to set highlights (resets on colorscheme change) - hooks.register(hooks.type.HIGHLIGHT_SETUP, function() - vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" }) - vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" }) - vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" }) - vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" }) - vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" }) - vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" }) - vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" }) - end) + -- Register hook to set highlights (resets on colorscheme change) + hooks.register(hooks.type.HIGHLIGHT_SETUP, function() + vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" }) + vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" }) + vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" }) + vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" }) + vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" }) + vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" }) + vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" }) + end) - -- Setup ibl with your highlights - ibl.setup { - indent = { - highlight = highlight, - char = "│", - tab_char = "│", - }, - exclude = { - filetypes = { "dashboard", "alpha", "help", "neo-tree", "NvimTree", "lazy" }, - buftypes = { "nofile", "terminal" }, -- optional but useful - }, - } + -- Setup ibl with your highlights + ibl.setup { + indent = { + highlight = highlight, + char = "│", + tab_char = "│", + }, + exclude = { + filetypes = { "dashboard", "alpha", "help", "neo-tree", "NvimTree", "lazy" }, + buftypes = { "nofile", "terminal" }, -- optional but useful + }, + } end - |
