Skip to content

Instantly share code, notes, and snippets.

@mogelbrod
Created December 30, 2019 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogelbrod/cea11819ae666955d3c86b5503e8824c to your computer and use it in GitHub Desktop.
Save mogelbrod/cea11819ae666955d3c86b5503e8824c to your computer and use it in GitHub Desktop.
vim/ycm long completion popup squished by long menu
// Put cursor v there and wait until YCM+tsserver has initialized
const x = [].
{
"name": "vim-ycm-completion-issue",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "vim -u vimrc index.ts -c 'setf typescript'"
},
"author": "",
"license": "ISC",
"dependencies": {
"typescript": "^3.7.4"
}
}
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"allowJs": true,
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"downlevelIteration": false,
"experimentalDecorators": true,
"suppressImplicitAnyIndexErrors": true,
"lib": [
"es2015",
"es2016",
"es2017"
]
},
"exclude": [
"node_modules"
]
}
set nocompatible
" Load YCM somehow
let $VIMHOME = $HOME."/.vim"
call plug#begin($VIMHOME . '/bundle')
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
call plug#end()
syntax on
set backspace=indent,eol,start
set completeopt=longest,menu,popup
let g:ycm_semantic_triggers = {
\ 'javascript': [ 're!([ ;] |\t|: |@)' ],
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment