mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
Add ISSUE_TEMPLATE
This commit is contained in:
parent
41de5e8d21
commit
e999c43b91
12
.github/ISSUE_TEMPLATE.md
vendored
Normal file
12
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
### Expected behavior, english is recommend
|
||||||
|
|
||||||
|
|
||||||
|
### Environment Information
|
||||||
|
- OS:
|
||||||
|
- vim version:
|
||||||
|
- neovim version:
|
||||||
|
|
||||||
|
### The reproduce ways from Vim starting (Required!)
|
||||||
|
|
||||||
|
|
||||||
|
### Output of the ":message" command, and ":echo SpaceVim#logger#viewLog()"
|
@ -41,8 +41,12 @@ endfunction
|
|||||||
|
|
||||||
function! SpaceVim#logger#viewLog(...) abort
|
function! SpaceVim#logger#viewLog(...) abort
|
||||||
let l = a:0 > 0 ? a:1 : 1
|
let l = a:0 > 0 ? a:1 : 1
|
||||||
|
if filereadable(s:logger_file)
|
||||||
let logs = readfile(s:logger_file, '')
|
let logs = readfile(s:logger_file, '')
|
||||||
echo logs[0]
|
else
|
||||||
|
let logs = []
|
||||||
|
echom '[ SpaceVim ] : logger file ' . s:logger_file . ' does not exists!'
|
||||||
|
endif
|
||||||
return join(filter(logs, "v:val =~# '\[ SpaceVim \] \[\d\d\:\d\d\:\d\d\] \[" . s:levels[l] . "\]'"), "\n")
|
return join(filter(logs, "v:val =~# '\[ SpaceVim \] \[\d\d\:\d\d\:\d\d\] \[" . s:levels[l] . "\]'"), "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user