~damien/dotfiles

e466a4e10732af76bae43b891228ce68e99a758a — Damien Radtke 3 years ago 7d4693a
Remove vim-go
1 files changed, 0 insertions(+), 31 deletions(-)

M vim/.vimrc
M vim/.vimrc => vim/.vimrc +0 -31
@@ 1,9 1,7 @@
call plug#begin()
Plug 'arrufat/vala.vim'
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
Plug 'benmills/vimux'
Plug 'dradtke/vim-dap'
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
Plug 'hashivim/vim-terraform'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'


@@ 37,39 35,10 @@ nmap <Leader>nt :NERDTreeToggle<cr>
nmap <Leader>nf :NERDTreeFind<cr>
nmap <Leader>nh :set nohls<cr>

au filetype go nmap <Leader>tt :GoTest!<cr>
au filetype go nmap <Leader>tf :GoTestFunc!<cr>
au filetype go nmap <Leader>gi :GoImports<cr>
au filetype go setlocal noexpandtab tabstop=4 shiftwidth=4
au filetype html setlocal expandtab tabstop=2 shiftwidth=2
au filetype json setlocal expandtab tabstop=2 shiftwidth=2
au filetype javascript setlocal expandtab tabstop=4 shiftwidth=4
au filetype rust setlocal omnifunc=lsp#complete

if !has('nvim-0.5')
	" Register language servers.
	let g:LanguageClient_loggingFile = expand('~/.vim/LanguageClient.log')
	let g:LanguageClient_loggingLevel = 'DEBUG'
	let g:LanguageClient_settingsPath = ['.vim/settings.json', '~/.vim/settings.json']
	let g:LanguageClient_serverCommands = {
		\ 'go': [exepath('gopls')],
		\ 'rust': [exepath('rustup'), 'run', 'stable', 'rls'],
		\ 'vala': [exepath('vala-language-server')],
		\ 'java': [exepath('java-language-server')],
		\ }

	" Define shortcuts and tools for using language server tools.

	function! LanguageClientSetup()
		if has_key(g:LanguageClient_serverCommands, &filetype)
			nmap <silent>K <Plug>(lcn-hover)
			nmap <silent> gd <Plug>(lcn-definition)

			" set completefunc=LanguageClient#complete
		endif
	endfunction
	autocmd FileType * call LanguageClientSetup()
endif

silent! colorscheme wasabi256
highlight! link NonText NONE