Revisión | c5b02dae8708c5f05a31d1aca47a4bba41ab2672 (tree) |
---|---|
Tiempo | 2023-02-08 21:56:44 |
Autor | badcoff33 <none@none> |
Commiter | badcoff33 |
minor updates
@@ -68,7 +68,7 @@ function! visuals#info_hl() | ||
68 | 68 | endfunction |
69 | 69 | |
70 | 70 | function visuals#blend_down() |
71 | - if ((&previewwindow) || (&bt=='help') || (&ft == 'netrw')) | |
71 | + if ((&previewwindow) || (&bt=='help') || (&bt == 'quickfix')) | |
72 | 72 | set wincolor=CursorLine |
73 | 73 | else |
74 | 74 | set wincolor= |
@@ -29,8 +29,8 @@ let s:green1 = "#02A358" | ||
29 | 29 | let s:green2 = "#07C168" |
30 | 30 | let s:green3 = "#07E070" |
31 | 31 | let s:green4 = "#07F88F" |
32 | -let s:blue_bg = "#134580" | |
33 | -let s:blue1 = "#2048B0" | |
32 | +let s:blue_bg = "#134570" | |
33 | +let s:blue1 = "#3068B8" | |
34 | 34 | let s:blue2 = "#4090D8" |
35 | 35 | let s:blue3 = "#70B0F8" |
36 | 36 | let s:red1 = "#B82042" |
@@ -63,12 +63,12 @@ execute "hi PmenuSel" Fg(s:white) Bg(s:green1) Attr("NONE") | ||
63 | 63 | execute "hi PmenuThumb" Fg(s:blue2) Bg(s:bg4) |
64 | 64 | execute "hi Question" Fg(s:green2) Bg("bg") |
65 | 65 | execute "hi QuickFixLine" Fg(s:blue3) Bg(s:blue_bg) Attr("NONE") |
66 | -execute "hi Search" Fg(s:gold) Bg(s:blue_bg) Attr("NONE") | |
66 | +execute "hi Search" Fg(s:gold) Bg(s:blue_bg) Attr("bold") | |
67 | 67 | execute "hi StatusLine" Fg(s:black) Bg(s:blue3) Attr("NONE") Cterm("NONE") |
68 | 68 | execute "hi StatusLineNC" Fg(s:silver4) Bg(s:bg3) Attr("NONE") Cterm("NONE") |
69 | 69 | execute "hi Terminal" Fg(s:green3) Bg(s:black) |
70 | 70 | execute "hi Title" Fg(s:green3) |
71 | -execute "hi User1" Fg(s:blue3) Bg(s:black) | |
71 | +execute "hi User1" Fg(s:blue3) Bg(s:blue_bg) | |
72 | 72 | execute "hi VertSplit" Fg(s:bg2) Bg(s:bg2) Attr("NONE") |
73 | 73 | execute "hi Visual" Fg(s:white) Bg(s:silver1) |
74 | 74 | execute "hi WarningMsg" Fg(s:white) Bg(s:blue1) |
@@ -107,7 +107,7 @@ execute "hi Constant" Fg(s:white) | ||
107 | 107 | execute "hi Number" Fg(s:white) |
108 | 108 | execute "hi Todo" Fg(s:silver2) Bg(s:bg3) |
109 | 109 | execute "hi Error" Fg(s:red2) Bg(s:bg3) |
110 | -execute "hi Directory" Fg(s:silver4) Attr("underline") | |
110 | +execute "hi Directory" Fg(s:blue3) Attr("underline") | |
111 | 111 | |
112 | 112 | " Filetype VIM |
113 | 113 | execute "hi vimCommentTitle" Fg(s:white) Attr("bold") |
@@ -263,19 +263,17 @@ function! s:ToggleQuickfix() | ||
263 | 263 | if is_open == v:false |
264 | 264 | let qf = getqflist() |
265 | 265 | let max_len = 0 |
266 | - for qfentry in qf | |
267 | - let max_len = len(qfentry["text"]) > max_len ? len(qfentry["text"]) : max_len | |
266 | + for e in qf | |
267 | + let max_len = len(e["text"]) > max_len ? len(e["text"]) : max_len | |
268 | 268 | endfor |
269 | - if max_len > (&columns / 3) | |
270 | - botright copen | |
271 | - wincmd p | |
272 | - elseif winnr("$") == 1 && &columns >= 140 | |
269 | + if winnr("$") == 1 && &columns >= 140 | |
273 | 270 | vert copen |
274 | 271 | wincmd p |
275 | 272 | wincmd = |
276 | - else | |
277 | - botright copen | |
278 | - endif | |
273 | + else | |
274 | + execute "botright" "copen" min([&lines/3, max([1, len(qf)])]) | |
275 | + wincmd p | |
276 | + endif | |
279 | 277 | else |
280 | 278 | if (winnr("$") == 1) && (&buftype=="quickfix") |
281 | 279 | buffer # |