Added vimtex and plug, color changes

This commit is contained in:
TuDatTr
2019-11-25 17:58:42 +01:00
parent 92001234c6
commit cf00862daa
28 changed files with 79487 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
const semver = require('semver')
const version = process.version.replace('v', '')
if (!semver.gte(version, '8.10.0')) {
console.error('node version ' + version + ' < 8.10.0, please upgrade nodejs, or use `let g:coc_node_path = "/path/to/node"` in your vimrc')
process.exit()
}
Object.defineProperty(console, 'log', {
value: () => { }
})
const attach = require('../lib/attach').default
const logger = require('../lib/util/logger')('server')
attach({ reader: process.stdin, writer: process.stdout })
process.on('uncaughtException', function (err) {
let msg = 'Uncaught exception: ' + err.stack
console.error(msg)
logger.error('uncaughtException', err.stack)
})
process.on('unhandledRejection', function (reason, p) {
if (reason instanceof Error) {
console.error('UnhandledRejection: ' + reason.message + '\n' + reason.stack)
} else {
console.error('UnhandledRejection: ' + reason)
}
logger.error('unhandledRejection ', p, reason)
})

View File

@@ -0,0 +1,12 @@
#!/bin/bash
terminateTree() {
for cpid in $(pgrep -P $1); do
terminateTree $cpid
done
kill -9 $1 > /dev/null 2>&1
}
for pid in $*; do
terminateTree $pid
done