From b6866925e1bdf2b010de2178898ba8edc1b976f6 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Mon, 28 Jun 2021 13:36:52 -0400 Subject: indent line plugin option --- lua/default-config.lua | 2 +- lua/plugins.lua | 22 +++++++++++++++++++++- lua/settings.lua | 1 + lv-config.lua | 13 +++++++------ 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/lua/default-config.lua b/lua/default-config.lua index b713f425..7982d0fd 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -21,7 +21,6 @@ O = { ensure_installed = "all", ignore_install = {"haskell"}, highlight = {enabled = true}, - playground = {enabled = true}, rainbow = {enabled = false} }, @@ -35,6 +34,7 @@ O = { colorizer = {active = false}, numb = {active = false}, ts_playground = {active = false}, + indent_line = {active = false} }, diff --git a/lua/plugins.lua b/lua/plugins.lua index 65290a23..6f451aab 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -185,7 +185,27 @@ return require("packer").startup(function(use) event = "BufRead", disable = not O.plugin.ts_playground.active } - -- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'} + + use { + "lukas-reineke/indent-blankline.nvim", + branch = "lua", + event = "BufRead", + setup = function() + + vim.g.indentLine_enabled = 1 + vim.g.indent_blankline_char = "▏" + + vim.g.indent_blankline_filetype_exclude = { + "help", "terminal", "dashboard" + } + vim.g.indent_blankline_buftype_exclude = {"terminal"} + + vim.g.indent_blankline_show_trailing_blankline_indent = false + vim.g.indent_blankline_show_first_indent_level = true + end, + disable = not O.plugin.indent_line.active + } + -- use {"nvim-telescope/telescope-fzy-native.nvim", opt = true} -- use {"nvim-telescope/telescope-project.nvim", opt = true} -- -- comments in context diff --git a/lua/settings.lua b/lua/settings.lua index 94a1fc3e..4e47a0ca 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -46,3 +46,4 @@ vim.cmd('filetype plugin on') -- filetype detection vim.o.guifont = "FiraCode Nerd Font:h17" -- vim.o.guifont = "JetBrains\\ Mono\\ Regular\\ Nerd\\ Font\\ Complete" + diff --git a/lv-config.lua b/lv-config.lua index 41a59eb2..afd3c8c1 100644 --- a/lv-config.lua +++ b/lv-config.lua @@ -17,13 +17,14 @@ O.extras = false O.leader_key = ' ' -- After changing plugin config it is recommended to run :PackerCompile -O.plugin.hop.active = true -O.plugin.dial.active = true +O.plugin.hop.active = false +O.plugin.dial.active = false O.plugin.dashboard.active = true -O.plugin.matchup.active = true -O.plugin.colorizer.active = true -O.plugin.numb.active = true -O.plugin.ts_playground.active = true +O.plugin.matchup.active = false +O.plugin.colorizer.active = false +O.plugin.numb.active = false +O.plugin.ts_playground.active = false +O.plugin.indent_line.active = false -- dashboard -- O.dashboard.custom_header = {""} -- cgit v1.2.3