Created
December 30, 2019 11:12
-
-
Save mogelbrod/cea11819ae666955d3c86b5503e8824c to your computer and use it in GitHub Desktop.
vim/ycm long completion popup squished by long menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put cursor v there and wait until YCM+tsserver has initialized | |
const x = []. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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