diff options
Diffstat (limited to 'autoload/ale/cleanup.vim')
-rw-r--r-- | autoload/ale/cleanup.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/autoload/ale/cleanup.vim b/autoload/ale/cleanup.vim new file mode 100644 index 00000000..2f636eee --- /dev/null +++ b/autoload/ale/cleanup.vim @@ -0,0 +1,16 @@ +" Author: w0rp <devw0rp@gmail.com> +" Description: Utility functions related to cleaning state. + +function! ale#cleanup#Buffer(buffer) abort + if has_key(g:ale_buffer_should_reset_map, a:buffer) + call remove(g:ale_buffer_should_reset_map, a:buffer) + endif + + if has_key(g:ale_buffer_loclist_map, a:buffer) + call remove(g:ale_buffer_loclist_map, a:buffer) + endif + + if has_key(g:ale_buffer_sign_dummy_map, a:buffer) + call remove(g:ale_buffer_sign_dummy_map, a:buffer) + endif +endfunction |