From 584ad307d68fdeb15131f893c828aa0eb9af0d18 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 9 Apr 2025 22:17:37 +0200 Subject: [PATCH] use snacks indent --- lua/config/options.lua | 5 ++++ lua/plugins/indent_blankline.lua | 47 -------------------------------- lua/plugins/snacks.lua | 18 ++++++++++++ 3 files changed, 23 insertions(+), 47 deletions(-) delete mode 100644 lua/plugins/indent_blankline.lua diff --git a/lua/config/options.lua b/lua/config/options.lua index 5bdeee2..f2606b2 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -6,6 +6,11 @@ local indent = 2 opt.termguicolors = true -- Enable colors in terminal opt.hlsearch = true --Set highlight on search opt.number = true --Make line numbers default +opt.listchars:append('eol:↴') +-- opt.listchars:append("space: ") +-- opt.listchars:append 'space:⋅' +opt.listchars:append('trail: ') +opt.listchars:append('tab:→ ') opt.relativenumber = false --Make relative number default opt.mouse = 'a' --Enable mouse mode opt.breakindent = true --Enable break indent diff --git a/lua/plugins/indent_blankline.lua b/lua/plugins/indent_blankline.lua deleted file mode 100644 index 381ef90..0000000 --- a/lua/plugins/indent_blankline.lua +++ /dev/null @@ -1,47 +0,0 @@ -return { - 'lukas-reineke/indent-blankline.nvim', - dependencies = { - 'nvim-treesitter/nvim-treesitter', - }, - main = 'ibl', - config = function() - local opt = vim.opt -- to set options - opt.listchars:append('eol:↴') - -- opt.listchars:append("space: ") - -- opt.listchars:append 'space:⋅' - opt.listchars:append('trail: ') - opt.listchars:append('tab:→ ') - local highlight = { - 'RainbowRed', - 'RainbowYellow', - 'RainbowBlue', - 'RainbowOrange', - 'RainbowGreen', - 'RainbowViolet', - 'RainbowCyan', - } - - 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 = '#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) - - vim.g.rainbow_delimiters = { highlight = highlight } - require('ibl').setup({ - scope = { - highlight = highlight, - show_start = false, - }, - }) - - hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark) - end, -} diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index ca06282..c8413ce 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -13,6 +13,24 @@ return { quickfile = { enabled = true }, statuscolumn = { enabled = true }, words = { enabled = true }, + indent = { + indent = { + hl = 'CmpItemKindNull', + only_scope = false, + only_current = false, + }, + enabled = true, + animate = { + enabled = false, + }, + scope = { + enabled = false, + }, + chunk = { + enabled = false, + hl = 'Debug', + }, + }, dashboard = { sections = { { section = 'header' },