From 4656e8e3dce06b650c3d7c4bc75c0fa8f40e1b8c Mon Sep 17 00:00:00 2001 From: pr0c3550r Date: Mon, 2 Oct 2023 19:47:26 +0200 Subject: [PATCH] Nvim: updated indent-blankline and changed tabs to spaces --- nvim/.config/nvim/lua/core/settings.lua | 8 +++---- .../nvim/lua/plugin/indent-blankline.lua | 22 +++++++++++++------ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/nvim/.config/nvim/lua/core/settings.lua b/nvim/.config/nvim/lua/core/settings.lua index 4b1b726..e4a3fe2 100644 --- a/nvim/.config/nvim/lua/core/settings.lua +++ b/nvim/.config/nvim/lua/core/settings.lua @@ -16,10 +16,10 @@ vim.opt.completeopt = 'menu,menuone,noselect' vim.opt.list = true -- correct tabbing -vim.opt.tabstop = 2 -vim.opt.softtabstop = 2 -vim.opt.shiftwidth = 2 -vim.opt.expandtab = false +vim.opt.tabstop = 4 +vim.opt.softtabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.expandtab = true -- enable foldcolumn vim.wo.foldcolumn = "2" diff --git a/nvim/.config/nvim/lua/plugin/indent-blankline.lua b/nvim/.config/nvim/lua/plugin/indent-blankline.lua index ddd929e..9c5c21e 100644 --- a/nvim/.config/nvim/lua/plugin/indent-blankline.lua +++ b/nvim/.config/nvim/lua/plugin/indent-blankline.lua @@ -3,12 +3,20 @@ return { "lukas-reineke/indent-blankline.nvim", -- event = "BufReadPre", main = 'ibl', - opts = { - -- char = "│", - filetype_exclude = { "help", "lazy" }, - show_trailing_blankline_indent = true, - show_current_context = true, - show_current_context_start = true, - }, + config = function() + require("ibl").setup({ + enabled = true, + indent = { + char = "│", + smart_indent_cap = true + }, + scope = { + exclude = { + language = { "help", "lazy" } + } + }, + }) + end, + opts = {}, }, }