From 8c33f07957087901909239481e837d99fc9e9b36 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Mon, 3 Jun 2024 23:10:56 +0200 Subject: [PATCH] Add visualization for tabs, trailing spaces, and nbsp's --- home/.config/nvim/lua/vim_opt.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/nvim/lua/vim_opt.lua b/home/.config/nvim/lua/vim_opt.lua index 986e14a..b29cd93 100644 --- a/home/.config/nvim/lua/vim_opt.lua +++ b/home/.config/nvim/lua/vim_opt.lua @@ -65,4 +65,8 @@ opt.termsync = true -- Sets a minimum number of lines to keep above and below the cursor opt.scrolloff = 4 +-- Whitespaces +opt.listchars = { tab = "→\"", trail = "·", nbsp = "␣" } +opt.list = true + return opt