diff options
author | w0rp <devw0rp@gmail.com> | 2020-11-21 01:18:27 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-11-21 01:18:27 +0000 |
commit | 7c04ee5c200b64ef0886677216fbec1303ec9475 (patch) | |
tree | 0f0af86e0fde0992818fdd057ea5745c47e8205c /plugin/ale.vim | |
parent | 48fe0dd4f629bb1282277ba8a6757a84c13a4dda (diff) | |
download | ale-7c04ee5c200b64ef0886677216fbec1303ec9475.zip |
Close #1466 - Add GVIM refactor menu support
Code actions and ALERename now appear in the right click context menu
for GVim by default.
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r-- | plugin/ale.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index c5c1d3d3..2398956e 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -158,6 +158,9 @@ let g:ale_python_auto_pipenv = get(g:, 'ale_python_auto_pipenv', 0) " This variable can be overridden to set the GO111MODULE environment variable. let g:ale_go_go111module = get(g:, 'ale_go_go111module', '') +" If 1, enable a popup menu for commands. +let g:ale_popup_menu_enabled = get(g:, 'ale_popup_menu_enabled', has('gui')) + if g:ale_set_balloons call ale#balloon#Enable() endif @@ -166,6 +169,10 @@ if g:ale_completion_enabled call ale#completion#Enable() endif +if g:ale_popup_menu_enabled + call ale#code_action#EnablePopUpMenu() +endif + " Define commands for moving through warnings and errors. command! -bar -nargs=* ALEPrevious \ :call ale#loclist_jumping#WrapJump('before', <q-args>) |