Skip to content

Commit

Permalink
add react and smart key replace on typescriptreact file
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed May 19, 2020
1 parent 8f83031 commit 28c9180
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func clilangqs() []string {
"R",
"javascript",
"typescript",
"react",
"vue",
"go",
"rust",
Expand Down
2 changes: 1 addition & 1 deletion keybinds/leaderkey.vim
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ function! s:load_smartchr() abort
\ smartchr#loop(':=',';')
autocmd FileType go inoremap <buffer> <expr> .
\ smartchr#loop('.', '<-', '->','...')
autocmd FileType typescript inoremap <buffer><expr>;
autocmd FileType typescript,typescriptreact inoremap <buffer><expr>;
\ smartchr#loop(':',';')
endif
endfunction
Expand Down
2 changes: 1 addition & 1 deletion lang/javascript.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Javascript and React support
# LanguageServerProtocol use coc-tsserver extensions
- { repo: neoclide/vim-jsx-improve,on_ft: [ javascript,javascriptreact ]}
- { repo: yuezk/vim-js,on_ft: [ javascript,javascriptreact ]}
- { repo: moll/vim-node, on_ft: [ javascript, javascriptreact ] }
- { repo: jparise/vim-graphql, on_ft: [ javascript, javascriptreact ] }
3 changes: 3 additions & 0 deletions lang/react.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# React Support
- { repo: MaxMEllon/vim-jsx-pretty,on_ft: [ javascriptreact,typescriptreact ]}
1 change: 0 additions & 1 deletion lang/typescript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# Typescript and React support
# LanguageServerProtocol used by coc-tsserver
- { repo: HerringtonDarkholme/yats.vim, on_ft: [ typescript, typescriptreact ]}
- { repo: MaxMEllon/vim-jsx-pretty,on_ft: typescriptreact }
2 changes: 1 addition & 1 deletion scripts/generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -u

version=v0.1.1
version=v0.1.2

APP=generator

Expand Down

0 comments on commit 28c9180

Please sign in to comment.