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
|
||||
vim.opt.list = true
|
||||
-- Customize the listchars display strings
|
||||
-- nbsp: Circled Reverse Solidus (U+29B8, utf-8: E2 A6 B8)
|
||||
-- trail: Middle Dot (U+00B7, utf-8: C2 B7)
|
||||
-- tab: White Right-Pointing Small Triangle (U+25B9, utf-8: E2 96 B9)
|
||||
vim.opt.listchars = {
|
||||
-- Circled Reverse Solidus (U+29B8, utf-8: E2 A6 B8)
|
||||
nbsp = '⦸',
|
||||
-- Middle Dot (U+00B7, utf-8: C2 B7)
|
||||
trail = '·',
|
||||
-- White Right-Pointing Small Triangle (U+25B9, utf-8: E2 96 B9)
|
||||
-- Box Drawings Light Triple Dash Horizontal (U+2504, utf-8: E2 94 84)
|
||||
-- extends: Right-Pointing Double Angle Quotation Mark (U+00BB, utf-8: C2 BB)
|
||||
-- precedes: Left-Pointing Double Angle Quotation Mark (U+00AB, utf-8: C2 AB)
|
||||
vim.opt.listchars = 'nbsp:⦸,trail:·,tab:▹┄,extends:»,precedes:«'
|
||||
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
|
||||
vim.opt.wrap = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user