summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2020-03-30 16:13:54 +0200
committerAhmed Abdelhalim <[email protected]>2020-03-30 16:13:54 +0200
commit921285a75a718da5f6f14ca2d1b116b874de17cb (patch)
treec234087619729a0fa43e66d961bd77d4d011a7d0
parent91a64bc4009318ef559c9b70c2c4edd904d59757 (diff)
Show typescript method autocompletion in preview menu
-rw-r--r--.vimrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 88b0753..3ba5916 100644
--- a/.vimrc
+++ b/.vimrc
@@ -159,6 +159,7 @@ autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType scss noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR>
+autocmd FileType typescript setlocal completeopt+=menu,preview
autocmd CompleteDone * pclose " auto-close preview after completion
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""