From e9983dea084dcff1947bddead71c7951cf4adbcf Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 22 Aug 2019 20:35:27 +0200 Subject: Added i3 config stuff, and changed vim auto completion again --- vim/.vimrc | 51 ++++++++++++++++++++++----------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index d4d24d3..e72a47f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,14 +14,11 @@ set shellslash Plugin 'VundleVim/Vundle.vim' " Completion - Plugin 'autozimu/LanguageClient-neovim' - if has('nvim') - Plugin 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } - else - Plugin 'Shougo/deoplete.nvim' - Plugin 'roxma/nvim-yarp' - Plugin 'roxma/vim-hug-neovim-rpc' - endif + "Plugin 'prabirshrestha/async.vim' + "Plugin 'prabirshrestha/vim-lsp' + Plugin 'fatih/vim-go' + Plugin 'ajh17/VimCompletesMe' + Plugin 'ludovicchabant/vim-gutentags' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' @@ -51,14 +48,16 @@ set shellslash colorscheme horizon " Completion -let g:LanguageClient_serverCommands = { - \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls' ], - \ 'c': ['/usr/bin/cquery', '--log-file=/tmp/cq.log', '--init={"cacheDirectory":"/tmp/cquery/"}' ] - \ } - -let g:LanguageClient_useVirtualText = 0 -let g:LanguageClient_diagnosticsEnable = 0 -let g:deoplete#enable_at_startup = 1 + " let g:LanguageClient_serverCommands = { + " \ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls' ], + " \ 'c': ['/usr/bin/cquery', '--log-file=/tmp/cq.log', '--init={"cacheDirectory":"/tmp/cquery/"}' ] + " \ } + " + " let g:LanguageClient_useVirtualText = 0 + " let g:LanguageClient_diagnosticsEnable = 0 + " let g:deoplete#enable_at_startup = 1 + let g:go_def_mode='gopls' + let g:go_info_mode='gopls' syntax enable set number relativenumber @@ -98,19 +97,16 @@ set hidden set completeopt=menuone,preview " Keymapping - map :NERDTreeToggle map :TagbarToggle - inoremap pumvisible() ? "\" : "\" - inoremap pumvisible() ? "\" : "\\" - inoremap pumvisible() ? "\" : "\\" + nnoremap :b - nnoremap :call LanguageClient_contextMenu() - nnoremap K :call LanguageClient#textDocument_hover() - nnoremap gd :call LanguageClient#textDocument_definition() - nnoremap :call LanguageClient#textDocument_rename() + nnoremap QuickNext :cnext :call repeat#set("\QuickNext") + nnoremap QuickPrev :cprev :call repeat#set("\QuickPrev") + nnoremap ,, :copen - nnoremap :b + nmap ,n QuickNext + nmap ,N QuickPrev " When moving more lines make it a jump. If couns i 2 it will run m'2j, " thus storing it on the jumplist and then jumping @@ -120,9 +116,8 @@ set completeopt=menuone,preview " Leader stuff let mapleader=" " - map z :Goyo map mm :make V=1 - map mf :!make flash V=1 + map mf :make flash V=1 " Example on filetype specific " autocmd FileType tex map o :w !detex \| wc -w @@ -133,5 +128,3 @@ set completeopt=menuone,preview autocmd BufRead,BufNewFile *.asc set filetype=asciidoc autocmd FileType python setlocal completeopt-=preview -" Path settings - let g:ycm_rust_src_path = '~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src' -- cgit v1.2.3