mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
Add lang#rust layer
This commit is contained in:
parent
c3fe6c0921
commit
160f3b34d5
@ -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')
|
||||
|
10
autoload/SpaceVim/layers/lang/rust.vim
Normal file
10
autoload/SpaceVim/layers/lang/rust.vim
Normal 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
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user