Files
nvim/rust.vim
2021-10-23 15:22:14 +02:00

12 lines
310 B
VimL

" No spell checking in code file
autocmd BufNewFile,BufRead *.rs setlocal nospell
if executable('rls')
" pip install rust-language-server
au User lsp_setup call lsp#register_server({
\ 'name': 'rls',
\ 'cmd': {server_info->['rls']},
\ 'allowlist': ['rust'],
\ })
endif