mirror of
https://github.com/neovim/neovim.git
synced 2025-11-22 10:06:33 +00:00
Merge pull request #15207 from gpanders/bye-syncolor
fix(highlight): remove syncolor.vim
This commit is contained in:
@@ -14,6 +14,8 @@ local function new_screen(opt)
|
||||
[3] = {bold = true, reverse = true},
|
||||
[4] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red},
|
||||
[5] = {bold = true, foreground = Screen.colors.SeaGreen4},
|
||||
[6] = {foreground = Screen.colors.Magenta},
|
||||
[7] = {bold = true, foreground = Screen.colors.Brown},
|
||||
})
|
||||
return screen
|
||||
end
|
||||
@@ -267,7 +269,7 @@ local function test_cmdline(linegrid)
|
||||
special = {'"', true},
|
||||
}, {
|
||||
firstc = "=",
|
||||
content = {{"1"}, {"+"}, {"2"}},
|
||||
content = {{"1", 6}, {"+", 7}, {"2", 6}},
|
||||
pos = 3,
|
||||
}}
|
||||
|
||||
|
||||
@@ -789,7 +789,7 @@ describe("'listchars' highlight", function()
|
||||
[0] = {bold=true, foreground=Screen.colors.Blue},
|
||||
[1] = {background=Screen.colors.Grey90},
|
||||
[2] = {foreground=Screen.colors.Red},
|
||||
[3] = {foreground=Screen.colors.Green1},
|
||||
[3] = {foreground=Screen.colors.X11Green, background=Screen.colors.Red1},
|
||||
})
|
||||
feed_command('highlight clear ModeMsg')
|
||||
feed_command('highlight Whitespace guifg=#FF0000')
|
||||
|
||||
@@ -176,8 +176,8 @@ describe('Signs', function()
|
||||
command('sign place 5 line=3 name=pietWarn buffer=1')
|
||||
command('sign place 3 line=3 name=pietError buffer=1')
|
||||
screen:expect([[
|
||||
{1:>>}XX{6: 1 }a |
|
||||
XX{1:>>}{6: 2 }b |
|
||||
{1:>>}{8:XX}{6: 1 }a |
|
||||
{8:XX}{1:>>}{6: 2 }b |
|
||||
{1:>>}WW{6: 3 }c |
|
||||
{2: }{6: 4 }^ |
|
||||
{0:~ }|
|
||||
@@ -194,7 +194,7 @@ describe('Signs', function()
|
||||
-- With the default setting, we get the sign with the top id.
|
||||
command('set signcolumn=yes:1')
|
||||
screen:expect([[
|
||||
XX{6: 1 }a |
|
||||
{8:XX}{6: 1 }a |
|
||||
{1:>>}{6: 2 }b |
|
||||
WW{6: 3 }c |
|
||||
{2: }{6: 4 }^ |
|
||||
@@ -212,9 +212,9 @@ describe('Signs', function()
|
||||
-- "auto:3" accommodates all the signs we defined so far.
|
||||
command('set signcolumn=auto:3')
|
||||
screen:expect([[
|
||||
{1:>>}XX{2: }{6: 1 }a |
|
||||
XX{1:>>}{2: }{6: 2 }b |
|
||||
XX{1:>>}WW{6: 3 }c |
|
||||
{1:>>}{8:XX}{2: }{6: 1 }a |
|
||||
{8:XX}{1:>>}{2: }{6: 2 }b |
|
||||
{8:XX}{1:>>}WW{6: 3 }c |
|
||||
{2: }{6: 4 }^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
@@ -230,9 +230,9 @@ describe('Signs', function()
|
||||
-- Check "yes:9".
|
||||
command('set signcolumn=yes:9')
|
||||
screen:expect([[
|
||||
{1:>>}XX{2: }{6: 1 }a |
|
||||
XX{1:>>}{2: }{6: 2 }b |
|
||||
XX{1:>>}WW{2: }{6: 3 }c |
|
||||
{1:>>}{8:XX}{2: }{6: 1 }a |
|
||||
{8:XX}{1:>>}{2: }{6: 2 }b |
|
||||
{8:XX}{1:>>}WW{2: }{6: 3 }c |
|
||||
{2: }{6: 4 }^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
@@ -249,9 +249,9 @@ describe('Signs', function()
|
||||
-- a single line (same result as "auto:3").
|
||||
command('set signcolumn=auto:4')
|
||||
screen:expect{grid=[[
|
||||
{1:>>}XX{2: }{6: 1 }a |
|
||||
XX{1:>>}{2: }{6: 2 }b |
|
||||
XX{1:>>}WW{6: 3 }c |
|
||||
{1:>>}{8:XX}{2: }{6: 1 }a |
|
||||
{8:XX}{1:>>}{2: }{6: 2 }b |
|
||||
{8:XX}{1:>>}WW{6: 3 }c |
|
||||
{2: }{6: 4 }^ |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
@@ -267,8 +267,8 @@ describe('Signs', function()
|
||||
-- line deletion deletes signs.
|
||||
command('2d')
|
||||
screen:expect([[
|
||||
{1:>>}XX{2: }{6: 1 }a |
|
||||
XX{1:>>}WW{6: 2 }^c |
|
||||
{1:>>}{8:XX}{2: }{6: 1 }a |
|
||||
{8:XX}{1:>>}WW{6: 2 }^c |
|
||||
{2: }{6: 3 } |
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
|
||||
@@ -52,6 +52,32 @@ local predefined_hl_defs = {
|
||||
QuickFixLine=true,
|
||||
Substitute=true,
|
||||
Whitespace=true,
|
||||
Error=true,
|
||||
Todo=true,
|
||||
String=true,
|
||||
Character=true,
|
||||
Number=true,
|
||||
Boolean=true,
|
||||
Float=true,
|
||||
Function=true,
|
||||
Conditional=true,
|
||||
Repeat=true,
|
||||
Label=true,
|
||||
Operator=true,
|
||||
Keyword=true,
|
||||
Exception=true,
|
||||
Include=true,
|
||||
Define=true,
|
||||
Macro=true,
|
||||
PreCondit=true,
|
||||
StorageClass=true,
|
||||
Structure=true,
|
||||
Typedef=true,
|
||||
Tag=true,
|
||||
SpecialChar=true,
|
||||
Delimiter=true,
|
||||
SpecialComment=true,
|
||||
Debug=true,
|
||||
|
||||
-- From highlight_init_(dark|light)
|
||||
ColorColumn=true,
|
||||
@@ -83,8 +109,6 @@ local predefined_hl_defs = {
|
||||
Visual=true,
|
||||
WarningMsg=true,
|
||||
Normal=true,
|
||||
|
||||
-- From syncolor.vim, if &background
|
||||
Comment=true,
|
||||
Constant=true,
|
||||
Special=true,
|
||||
@@ -94,36 +118,6 @@ local predefined_hl_defs = {
|
||||
Type=true,
|
||||
Underlined=true,
|
||||
Ignore=true,
|
||||
|
||||
-- From syncolor.vim, below if &background
|
||||
Error=true,
|
||||
Todo=true,
|
||||
|
||||
-- From syncolor.vim, links at the bottom
|
||||
String=true,
|
||||
Character=true,
|
||||
Number=true,
|
||||
Boolean=true,
|
||||
Float=true,
|
||||
Function=true,
|
||||
Conditional=true,
|
||||
Repeat=true,
|
||||
Label=true,
|
||||
Operator=true,
|
||||
Keyword=true,
|
||||
Exception=true,
|
||||
Include=true,
|
||||
Define=true,
|
||||
Macro=true,
|
||||
PreCondit=true,
|
||||
StorageClass=true,
|
||||
Structure=true,
|
||||
Typedef=true,
|
||||
Tag=true,
|
||||
SpecialChar=true,
|
||||
Delimiter=true,
|
||||
SpecialComment=true,
|
||||
Debug=true,
|
||||
}
|
||||
|
||||
local nvim_hl_defs = {}
|
||||
|
||||
Reference in New Issue
Block a user