summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-09-11 09:41:19 +0200
committerAhmed Abdelhalim <[email protected]>2023-09-11 09:41:19 +0200
commitd3d5d5c0cca3f7439e1f3df16281e391fdc999f4 (patch)
treeeb8fa3513847ae50859cde28c527ff8a99b87aac
parentd0784ab3d1478f207d718f08c16abd7e5ff3044e (diff)
Configure go and ale
-rw-r--r--.vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index beff545..6c1d8da 100644
--- a/.vimrc
+++ b/.vimrc
@@ -24,6 +24,7 @@ Plug 'sheerun/vim-polyglot'
Plug 'hashivim/vim-terraform'
Plug 'juliosueiras/vim-terraform-completion'
Plug 'https://bitbucket.org/sw-samuraj/vim-gradle'
+Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
" Snippets
Plug 'SirVer/ultisnips'
@@ -163,6 +164,15 @@ autocmd FileType ruby setlocal nospell " disable spell ch
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugin maps
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+"Ale
+"===
+set completeopt=menu,menuone,popup,noselect,noinsert " show documentation in popups
+let g:ale_floating_preview = 1 " use popupwin feature instead of virtual text
+let g:ale_virtualtext_single = 0 " show one error at a time in the virutal text
+let g:ale_virtualtext_cursor = 0 " disable virtual text
+let g:ale_echo_cursor = 1 " echo the (error/warning) message to the hover section
+let g:ale_cursor_detail = 1 " preview window will open automatically on cursor
+
"Deoplete (Auto complete)
"========================
let g:deoplete#enable_at_startup = 1