summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorLuan Santos <cfcluan@gmail.com>2018-11-05 22:45:40 -0800
committerLuan Santos <cfcluan@gmail.com>2018-11-05 22:45:40 -0800
commitc41dbe2ba9862037122b98fa2bb55fd72d277b74 (patch)
tree6c741ebab57adde45c821a5a6ed80dfc67a2323c /plugin/ale.vim
parent945dd2fa26af2632d78855d7fe3ff113f9b41a91 (diff)
downloadale-c41dbe2ba9862037122b98fa2bb55fd72d277b74.zip
Add support for nvim's virtualtext on cursor
- Add g:ale_virtualtext_cursor boolean to enable/disable it - Add g:ale_virtualtext_prefix to configure what prefix to use (default: '> ') - Requires neovim 0.3.2's unreleased API `nvim_buf_set_virtual_text`
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 7ef19775..f1735b42 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -109,6 +109,9 @@ let g:ale_set_highlights = get(g:, 'ale_set_highlights', has('syntax'))
" This flag can be set to 0 to disable echoing when the cursor moves.
let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1)
+" This flag can be set to 1 to enable virtual text when the cursor moves.
+let g:ale_virtualtext_cursor = get(g:, 'ale_virtualtext_cursor', 0)
+
" This flag can be set to 1 to automatically show errors in the preview window.
let g:ale_cursor_detail = get(g:, 'ale_cursor_detail', 0)