From ce9a024a32a26d907157bb8f80749aa3b07015f4 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Thu, 18 Jan 2024 12:41:00 +0100 Subject: [PATCH] general options: add listchars back MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was in the bépo config file and is useful to detect trailing spaces and nbsp chars. --- lua/general-options.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/general-options.lua b/lua/general-options.lua index cd5c59d..0a5bfe9 100644 --- a/lua/general-options.lua +++ b/lua/general-options.lua @@ -60,3 +60,7 @@ vim.o.tw = 80 vim.o.winwidth = 88 vim.o.scrolloff = 10 vim.cmd "set formatoptions-=t" + +-- Make some typographic chars visible +vim.opt.listchars:append({nbsp = "·", trail = "¤", eol = '↲'}) +vim.o.list = true