summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-04-27 21:57:46 +0200
committeryushyin <yushyin@saga>2019-04-27 21:57:46 +0200
commitde19dd95494b2e3532d537b3f4ed2e9d64b849ef (patch)
tree1d92641efb03f97ce3f42274b497ee94868092a5
parent587c5fb360426b32b4da5ece9eeb04e0d0e925fe (diff)
downloaddotfiles-de19dd95494b2e3532d537b3f4ed2e9d64b849ef.tar.gz
dotfiles-de19dd95494b2e3532d537b3f4ed2e9d64b849ef.tar.xz
Vim: Merge ftplugin/rust.vim to vimrc
-rw-r--r--vim/ftplugin/rust.vim1
-rw-r--r--vim/vimrc2
2 files changed, 2 insertions, 1 deletions
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({