mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00: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
|
||||
let l = a:0 > 0 ? a:1 : 1
|
||||
let logs = readfile(s:logger_file, '')
|
||||
echo logs[0]
|
||||
if filereadable(s:logger_file)
|
||||
let logs = readfile(s:logger_file, '')
|
||||
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")
|
||||
endfunction
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user