Revisión | 2e109eb211c8b921c59ff87f02864748b4fca325 (tree) |
---|---|
Tiempo | 2023-02-06 21:21:08 |
Autor | badcoff33 <none@none> |
Commiter | badcoff33 |
minor changes
@@ -21,8 +21,9 @@ enddef | ||
21 | 21 | export def CloseCb(ch: channel) |
22 | 22 | var ch_nr = split(string(ch), " ")[1] |
23 | 23 | var d = g:run_dict[ch_nr] |
24 | - var errors: number | |
25 | - var warnings: number | |
24 | + var lines = 0 | |
25 | + var errors = 0 | |
26 | + var warnings = 0 | |
26 | 27 | |
27 | 28 | setwinvar(d.winid, "&wincolor", "PmenuSel") |
28 | 29 | g:run_2_tid = timer_start(4000, (_) => { |
@@ -41,10 +42,13 @@ export def CloseCb(ch: channel) | ||
41 | 42 | w:quickfix_title = d.cmd |
42 | 43 | execute "silent bwipe" d.bufnr |
43 | 44 | for e in getqflist({ "nr": "$", "all": 0 }).items |
45 | + lines = lines + 1 | |
44 | 46 | errors += e.type ==? "e" ? 1 : 0 |
45 | 47 | warnings += e.type ==? "w" ? 1 : 0 |
46 | 48 | endfor |
47 | - popup_settext(d.winid, "Done: warnings=" .. warnings .. " errros=" .. errors) | |
49 | + popup_settext(d.winid, lines .. " lines with " | |
50 | + .. warnings .. " warnings and " | |
51 | + .. errors .. " errors") | |
48 | 52 | else |
49 | 53 | setbufvar(d.bufnr, "&modified", 0) |
50 | 54 | setbufvar(d.bufnr, "&modifiable", 0) |
@@ -105,9 +105,9 @@ execute "hi cParen" s:Fg(s:silver3) | ||
105 | 105 | execute "hi cBlock" s:Fg(s:silver3) |
106 | 106 | |
107 | 107 | " filetype HTML |
108 | -execute "hi htmlH1" s:Fg(s:blue) s:Attr("bold") | |
109 | -execute "hi htmlH2" s:Fg(s:blue) s:Attr("bold") | |
110 | -execute "hi htmlH3" s:Fg(s:blue) s:Attr("bold") | |
108 | +execute "hi htmlH1" s:Fg(s:red) s:Attr("bold") | |
109 | +execute "hi htmlH2" s:Fg(s:red) s:Attr("bold") | |
110 | +execute "hi htmlH3" s:Fg(s:red) s:Attr("bold") | |
111 | 111 | |
112 | 112 | " markdown |
113 | 113 | execute "hi markdownCode" s:Fg(s:silver3) s:Bg(s:silver9) |
@@ -32,7 +32,6 @@ def g:RgExcludes(): string | ||
32 | 32 | return exclude_string |
33 | 33 | enddef |
34 | 34 | |
35 | - | |
36 | 35 | # Using links? Ripgrep supports this by th option '--follow' |
37 | 36 | set grepprg=rg\ --vimgrep\ $* |
38 | 37 | set grepformat=%f:%l:%c:%m |
@@ -5,6 +5,6 @@ augroup GroupTL | ||
5 | 5 | autocmd! |
6 | 6 | autocmd TextChanged * torchlight.TorchlightChanged() |
7 | 7 | autocmd QuickFixCmdPre make torchlight.TorchlightClearAll() |
8 | - autocmd QuickFixCmdPost make torchlight.TorchlightInCurrentBuf() | |
8 | + autocmd QuickFixCmdPost make torchlight.TorchlightUpdate() | |
9 | 9 | augroup END |
10 | 10 |
@@ -127,7 +127,6 @@ execute "set langmap+=\<Char-214>{" | ||
127 | 127 | |
128 | 128 | " Switching modes |
129 | 129 | inoremap <k0> <Esc> |
130 | -imap jj <Esc> | |
131 | 130 | imap <Char-252> <Esc> |
132 | 131 | |
133 | 132 | " Consistent cursor movement |
@@ -135,12 +134,14 @@ noremap! <A-Left> <Home> | ||
135 | 134 | noremap! <A-Right> <End> |
136 | 135 | nnoremap <A-Left> <Home> |
137 | 136 | nnoremap <A-Right> <End> |
138 | -xnoremap <A-Left> 0 | |
139 | -xnoremap <A-Right> $ | |
137 | +vnoremap <A-Left> 0 | |
138 | +vnoremap <A-Right> $ | |
140 | 139 | |
141 | 140 | " Alternative keys to delete words in insert mode |
142 | 141 | inoremap <C-BS> <C-o>db |
143 | 142 | inoremap <C-Del> <C-o>de |
143 | +cnoremap <C-BS> <C-w> | |
144 | +cnoremap <C-Del> <C-Right><C-w> | |
144 | 145 | |
145 | 146 | " Next/prev match,expand fold and recenter |
146 | 147 | nnoremap n nzzzv |