1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:00:04 +08:00

Add lang#rust layer

This commit is contained in:
wsdjeg 2017-01-26 00:47:20 +08:00
parent c3fe6c0921
commit 160f3b34d5
3 changed files with 11 additions and 3 deletions

View File

@ -19,13 +19,11 @@ function! SpaceVim#layers#lang#plugins() abort
\ ['todesking/vint-syntastic', { 'on_ft' : 'vim'}],
\ ['plasticboy/vim-markdown', { 'on_ft' : 'markdown'}],
\ ['elixir-lang/vim-elixir', { 'on_ft' : 'elixir'}],
\ ['racer-rust/vim-racer', { 'on_ft' : 'rust'}],
\ ['PotatoesMaster/i3-vim-syntax', { 'on_ft' : 'i3'}],
\ ['isundil/vim-irssi-syntax', { 'on_ft' : 'irssi'}],
\ ['lervag/vimtex', { 'on_ft' : 'tex'}],
\ ['vimperator/vimperator.vim', { 'on_ft' : 'vimperator'}],
\ ['voxpupuli/vim-puppet', {'on_ft' : 'puppet'}],
\ ['rust-lang/rust.vim', {'merged' : 1}],
\ ]
" python
if has('nvim')

View File

@ -0,0 +1,10 @@
function! SpaceVim#layers#lang#rust#plugins() abort
let plugins = []
call add(plugins, ['racer-rust/vim-racer', { 'on_ft' : 'rust'}])
call add(plugins, ['rust-lang/rust.vim', {'merged' : 1}])
return plugins
endfunction
function! SpaceVim#layers#lang#rust#config() abort
endfunction

View File

@ -17,7 +17,7 @@ command! -range=% REPLSendSelection call REPLSend(s:GetVisual())
command! REPLSendLine call REPLSend([getline('.')])
" }}}
"let $NVIM_TUI_ENABLE_TRUE_COLOR=1
"let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=2
"silent! let &t_SI = "\<Esc>]50;CursorShape=1\x7"
"silent! let &t_SR = "\<Esc>]50;CursorShape=2\x7"
"silent! let &t_EI = "\<Esc>]50;CursorShape=0\x7"