Added vimtex and plug, color changes
This commit is contained in:
28
vim/.vim/pack/coc/start/coc.nvim-release/bin/server.js
Executable file
28
vim/.vim/pack/coc/start/coc.nvim-release/bin/server.js
Executable 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)
|
||||
})
|
||||
12
vim/.vim/pack/coc/start/coc.nvim-release/bin/terminateProcess.sh
Executable file
12
vim/.vim/pack/coc/start/coc.nvim-release/bin/terminateProcess.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user