From de19dd95494b2e3532d537b3f4ed2e9d64b849ef Mon Sep 17 00:00:00 2001 From: yushyin Date: Sat, 27 Apr 2019 21:57:46 +0200 Subject: Vim: Merge ftplugin/rust.vim to vimrc --- vim/ftplugin/rust.vim | 1 - vim/vimrc | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 vim/ftplugin/rust.vim diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim deleted file mode 100644 index aebbe1a..0000000 --- a/vim/ftplugin/rust.vim +++ /dev/null @@ -1 +0,0 @@ -setlocal omnifunc=lsp#complete diff --git a/vim/vimrc b/vim/vimrc index 2db09f5..4c9dec0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -118,6 +118,8 @@ if dein#tap('vim-lsp') \ 'cmd': {server_info->['rustup', 'run', 'nightly', 'rls']}, \ 'whitelist': ['rust'], \ }) + + au FileType rust setl omnifunc=lsp#complete endif if executable('hie-wrapper') au User lsp_setup call lsp#register_server({ -- cgit v1.2.3-24-g4f1b