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:
parent
d5bc741498
commit
f26bdcdc86
2 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,8 @@ return {
|
||||||
whitespace = {
|
whitespace = {
|
||||||
tab = "»",
|
tab = "»",
|
||||||
space = "·",
|
space = "·",
|
||||||
eol = ""
|
eol = "",
|
||||||
|
nbsp = "␣",
|
||||||
},
|
},
|
||||||
fold = {
|
fold = {
|
||||||
open = "",
|
open = "",
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue