Get rust support working again
This commit is contained in:
parent
4ee6116631
commit
384ec3801c
4 changed files with 16 additions and 24 deletions
1
init.vim
1
init.vim
|
@ -9,6 +9,7 @@ let mapleader = "\<Space>"
|
||||||
let oldwd = getcwd()
|
let oldwd = getcwd()
|
||||||
exec "cd " . vimrc_git
|
exec "cd " . vimrc_git
|
||||||
source plug.vim
|
source plug.vim
|
||||||
|
source ncm2.vim
|
||||||
source airline.vim
|
source airline.vim
|
||||||
source syntastic.vim
|
source syntastic.vim
|
||||||
source fzf.vim
|
source fzf.vim
|
||||||
|
|
16
lsp.vim
16
lsp.vim
|
@ -1,10 +1,6 @@
|
||||||
set hidden
|
au User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'rls',
|
||||||
let g:LanguageClient_serverCommands = {
|
\ 'cmd': {server_info->['rustup', 'run', 'stable', 'rls']},
|
||||||
\ 'rust': ['rls'],
|
\ 'workspace_config': {'rust': {'clippy_preference': 'on'}},
|
||||||
\ }
|
\ 'whitelist': ['rust'],
|
||||||
|
\ })
|
||||||
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
|
|
||||||
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
|
|
||||||
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
|
|
||||||
nnoremap <silent> S :call LanguageClient_textDocument_documentSymbol()<CR>
|
|
||||||
|
|
6
ncm2.vim
Normal file
6
ncm2.vim
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
" enable ncm2 for all buffers
|
||||||
|
autocmd BufEnter * call ncm2#enable_for_buffer()
|
||||||
|
|
||||||
|
" IMPORTANT: :help Ncm2PopupOpen for more information
|
||||||
|
set completeopt=noinsert,menuone,noselect
|
||||||
|
|
17
plug.vim
17
plug.vim
|
@ -40,25 +40,14 @@ Plug 'ncm2/ncm2-racer'
|
||||||
Plug 'vim-scripts/groovy.vim'
|
Plug 'vim-scripts/groovy.vim'
|
||||||
Plug 'vim-scripts/groovyindent-unix'
|
Plug 'vim-scripts/groovyindent-unix'
|
||||||
" LSP
|
" LSP
|
||||||
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
|
Plug 'prabirshrestha/async.vim'
|
||||||
|
Plug 'prabirshrestha/vim-lsp'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
" auto format all the things
|
" auto format all the things
|
||||||
" https://github.com/Chiel92/vim-autoformat
|
" https://github.com/Chiel92/vim-autoformat
|
||||||
Plug 'Chiel92/vim-autoformat'
|
Plug 'Chiel92/vim-autoformat'
|
||||||
" auto-completion framework
|
" auto-completion framework
|
||||||
Plug 'ncm2/ncm2'
|
Plug 'ncm2/ncm2'
|
||||||
" breeze dark color scheme, to match KDE
|
|
||||||
" Plug cannot actually install this colorscheme, clone and link autoload and
|
|
||||||
" colors manually
|
|
||||||
"Plug 'fneu/breezy'
|
|
||||||
" run npm i -g typescript tslint typescript-formatter so that these plugins have the tools they need
|
|
||||||
" typescript syntax support and other settings
|
|
||||||
Plug 'leafgarland/typescript-vim'
|
|
||||||
" plug into tsserver
|
|
||||||
Plug 'Quramy/tsuquyomi'
|
|
||||||
" Smart indenting for JS and TS
|
|
||||||
Plug 'jason0x43/vim-js-indent'
|
|
||||||
" Installs and builds vimproc (required to launch tsserver)
|
|
||||||
Plug 'Shougo/vimproc.vim', {'do': 'make'}
|
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call plug#end() " required
|
call plug#end() " required
|
||||||
|
|
Loading…
Reference in a new issue