You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set nocompatible
filetype off
set shell=/bin/bash
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'leafgarland/typescript-vim' " syntax, indenting and compiler for ts
Plugin 'peitalin/vim-jsx-typescript' " syntax highlight for TSX files
Plugin 'prettier/vim-prettier' " alternative to jsbeautify
call vundle#end()
filetype plugin indent on
" Make vim recognize syntax
syntax on
set foldmethod=syntax
noremap <C-f> :Prettier<CR>
When I format a .tsx file with vim-prettier the file gets truncated. This only happens if set foldmethod=syntax.
This is caused by a weird interaction between the three plugins.
Do you have any hints for me?
The text was updated successfully, but these errors were encountered:
I have three plugins installed using Vundle.
This is my .vimrc:
When I format a
.tsx
file with vim-prettier the file gets truncated. This only happens ifset foldmethod=syntax
.This is caused by a weird interaction between the three plugins.
Do you have any hints for me?
The text was updated successfully, but these errors were encountered: