summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-08-22 20:35:27 +0200
committerJulian T <julian@jtle.dk>2019-08-22 20:35:27 +0200
commite9983dea084dcff1947bddead71c7951cf4adbcf (patch)
treef3cb9c852c799d28d747d32d6fb86d5ee70b69a0 /vim/.vimrc
parentc09dceb3997ef3e581a442ca9416e886cbeef304 (diff)
Added i3 config stuff, and changed vim auto completion again
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc51
1 files changed, 22 insertions, 29 deletions
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 <C-n> :NERDTreeToggle<CR>
map <F4> :TagbarToggle<CR>
- inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
- inoremap <expr><C-j> pumvisible() ? "\<C-n>" : "\<C-x>\<C-o>"
- inoremap <expr><C-k> pumvisible() ? "\<C-p>" : "\<C-x>\<C-o>"
+ nnoremap <C-b> :b
- nnoremap <F5> :call LanguageClient_contextMenu()<CR>
- 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> <Plug>QuickNext :cnext<CR> :call repeat#set("\<Plug>QuickNext")<CR>
+ nnoremap <silent> <Plug>QuickPrev :cprev<CR> :call repeat#set("\<Plug>QuickPrev")<CR>
+ nnoremap ,, :copen<CR><c-w><c-p>
- nnoremap <C-b> :b
+ nmap ,n <Plug>QuickNext
+ nmap ,N <Plug>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 <leader>z :Goyo<CR>
map <leader>mm :make V=1<CR>
- map <leader>mf :!make flash V=1<CR>
+ map <leader>mf :make flash V=1<CR>
" Example on filetype specific
" autocmd FileType tex map <leader>o :w !detex \| wc -w<CR>
@@ -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'