Closed samumist closed 6 years ago
Currently my workaround is that i have mappings that toggle between :set ft=css
and :set ft=javascript.jsx
.
Thanks @danbruegge for the workaround.
function! ToggleJsxCssFt()
if &filetype == 'javascript.jsx'
set filetype=css
else
set filetype=javascript.jsx
endif
endfunction
nnoremap <leader>T :call ToggleJsxCssFt()<cr>
Forgot to put the code into the comment. ;) Its not the best solution for for a quick workaround it will do the job.
If you still have issue for jsx file, please try to fix with this issue? https://github.com/mattn/emmet-vim/issues/350
When I try to expand css abbreviation in a
.jsx
file, it only expands like html tag. For example:I'm wondering if this could be done and how? Many thanks