summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-09-02 11:38:20 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-09-02 11:40:09 -0400
commit9cbaa5056850e09ad238ae3ecfa7e0490a46abde (patch)
tree5411ee62f826ff0794b135e67535f148670371dd
parentb9ab61c78c71b684d8843d4c9675530e0b4feac2 (diff)
Add indent-blankline
This plugin shows indentation guides as well as whitespace. I'm not crazy about this setup currently, but it's kinda nice.
-rw-r--r--after/plugin/indent-blankline.lua14
-rw-r--r--lua/jacksontaylorxyz/packer.lua1
2 files changed, 15 insertions, 0 deletions
diff --git a/after/plugin/indent-blankline.lua b/after/plugin/indent-blankline.lua
new file mode 100644
index 0000000..6ab36e0
--- /dev/null
+++ b/after/plugin/indent-blankline.lua
@@ -0,0 +1,14 @@
+-- I'm not really happy with this setup right now. It helps identify where
+-- I'm at, especially in large files like json.
+
+vim.opt.list = true
+vim.opt.listchars:append "space:⋅"
+
+-- Disables startify from having these indent guides
+vim.g.indent_blankline_filetype_exclude = {'startify'}
+
+require("indent_blankline").setup {
+ space_char_blankline = " ",
+ show_current_context = true,
+ show_current_context_start = true,
+}
diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua
index 3bd9117..7cdd32c 100644
--- a/lua/jacksontaylorxyz/packer.lua
+++ b/lua/jacksontaylorxyz/packer.lua
@@ -33,6 +33,7 @@ return require('packer').startup(function(use)
}
use "junegunn/goyo.vim" -- "Zen" mode
use "mattn/calendar-vim" -- Calendar
+ use "lukas-reineke/indent-blankline.nvim"
-- Anything to do with git
use 'tpope/vim-fugitive' -- Git plugin