From 42d513809351f6a711e14cb31dabda547d244618 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 30 Sep 2022 14:03:54 -0500 Subject: feat(nvim): add listchars options --- nvim/.config/nvim/lua/tobyvin/options.lua | 9 +++++++-- nvim/.config/nvim/lua/tobyvin/plugins/indent_blankline.lua | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/lua/tobyvin/options.lua b/nvim/.config/nvim/lua/tobyvin/options.lua index b63d1d1..78e3d06 100644 --- a/nvim/.config/nvim/lua/tobyvin/options.lua +++ b/nvim/.config/nvim/lua/tobyvin/options.lua @@ -3,8 +3,6 @@ local M = {} M.setup = function() vim.g.mapleader = " " vim.g.netrw_preview = 1 - -- TODO: figure out how to only use this for specific windows - -- vim.g.netrw_liststyle = 3 vim.g.netrw_banner = 0 vim.g.netrw_altv = "nospr" vim.g.netrw_winsize = -30 @@ -56,6 +54,13 @@ M.setup = function() vim.opt.completeopt = { "menuone", "noselect", "noinsert" } vim.opt.spelllang = "en_us" vim.opt.spellfile = vim.fn.stdpath("config") .. "/spell/en.utf-8.add" + vim.opt.listchars = { + eol = "↵", + tab = "»-", + trail = "·", + extends = "…", + precedes = "…", + } vim.opt.sessionoptions = { "blank", "buffers", diff --git a/nvim/.config/nvim/lua/tobyvin/plugins/indent_blankline.lua b/nvim/.config/nvim/lua/tobyvin/plugins/indent_blankline.lua index dfd5b0d..1287d22 100644 --- a/nvim/.config/nvim/lua/tobyvin/plugins/indent_blankline.lua +++ b/nvim/.config/nvim/lua/tobyvin/plugins/indent_blankline.lua @@ -23,9 +23,9 @@ M.setup = function() "IndentBlanklineIndent5", "IndentBlanklineIndent6", }, + space_char_blankline = " ", + show_end_of_line = true, show_current_context = true, - -- show_current_context_start = true, - -- show_end_of_line = true, use_treesitter = true, use_treesitter_scope = true, }) -- cgit v1.2.3-70-g09d2