Use vim.opt.listchars properly
This commit is contained in:
parent
b03171b93a
commit
ef84de559f
@ -9,13 +9,19 @@ vim.opt.sidescrolloff = 5
|
|||||||
-- Enable visually highlighting listchars
|
-- Enable visually highlighting listchars
|
||||||
vim.opt.list = true
|
vim.opt.list = true
|
||||||
-- Customize the listchars display strings
|
-- Customize the listchars display strings
|
||||||
-- nbsp: Circled Reverse Solidus (U+29B8, utf-8: E2 A6 B8)
|
vim.opt.listchars = {
|
||||||
-- trail: Middle Dot (U+00B7, utf-8: C2 B7)
|
-- Circled Reverse Solidus (U+29B8, utf-8: E2 A6 B8)
|
||||||
-- tab: White Right-Pointing Small Triangle (U+25B9, utf-8: E2 96 B9)
|
nbsp = '⦸',
|
||||||
-- Box Drawings Light Triple Dash Horizontal (U+2504, utf-8: E2 94 84)
|
-- Middle Dot (U+00B7, utf-8: C2 B7)
|
||||||
-- extends: Right-Pointing Double Angle Quotation Mark (U+00BB, utf-8: C2 BB)
|
trail = '·',
|
||||||
-- precedes: Left-Pointing Double Angle Quotation Mark (U+00AB, utf-8: C2 AB)
|
-- White Right-Pointing Small Triangle (U+25B9, utf-8: E2 96 B9)
|
||||||
vim.opt.listchars = 'nbsp:⦸,trail:·,tab:▹┄,extends:»,precedes:«'
|
-- Box Drawings Light Triple Dash Horizontal (U+2504, utf-8: E2 94 84)
|
||||||
|
tab = '▹┄',
|
||||||
|
-- Right-Pointing Double Angle Quotation Mark (U+00BB, utf-8: C2 BB)
|
||||||
|
extends = '»',
|
||||||
|
-- Left-Pointing Double Angle Quotation Mark (U+00AB, utf-8: C2 AB)
|
||||||
|
precedes = '«',
|
||||||
|
}
|
||||||
|
|
||||||
-- Wrap lines which are longer than screen width
|
-- Wrap lines which are longer than screen width
|
||||||
vim.opt.wrap = true
|
vim.opt.wrap = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user