1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: use icon config for vim.o.listchars

This commit is contained in:
Henrik Hautakoski 2024-09-07 11:31:55 +02:00
parent d5bc741498
commit f26bdcdc86
2 changed files with 4 additions and 2 deletions

View file

@ -11,7 +11,8 @@ return {
whitespace = { whitespace = {
tab = "»", tab = "»",
space = "·", space = "·",
eol = "" eol = "",
nbsp = "",
}, },
fold = { fold = {
open = "", open = "",

View file

@ -74,7 +74,8 @@ vim.o.foldcolumn = "auto"
-- See `:help 'list'` -- See `:help 'list'`
-- and `:help 'listchars'` -- and `:help 'listchars'`
vim.o.list = false vim.o.list = false
vim.o.listchars = 'tab: »,space:·,eol:,nbsp:␣' vim.o.listchars = string.format([[tab: %s,space:%s,eol:%s,nbsp:%s]],
icons.whitespace.tab, icons.whitespace.space, icons.whitespace.eol, icons.whitespace.nbsp)
vim.o.fillchars = string.format([[eob: ,fold: ,foldopen:%s,foldsep:%s,foldclose:%s]], vim.o.fillchars = string.format([[eob: ,fold: ,foldopen:%s,foldsep:%s,foldclose:%s]],
icons.fold.open, icons.fold.sep, icons.fold.close) icons.fold.open, icons.fold.sep, icons.fold.close)