mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-15 14:32:05 +08:00
#653 - Automatically accept annoying loclist and quickfix errors from Vim
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
" Author: w0rp <devw0rp@gmail.com>
|
||||
" Description: Completion support for LSP linters
|
||||
|
||||
" A do-nothing function so we can load this autoload file in tests.
|
||||
function! ale#completion#Nop() abort
|
||||
endfunction
|
||||
|
||||
let s:timer_id = -1
|
||||
|
||||
function! s:GetRegex(map, filetype) abort
|
||||
@@ -110,11 +106,6 @@ function! ale#completion#OmniFunc(findstart, base) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" A wrapper function for feedkeys so we can test calls for it.
|
||||
function! ale#completion#FeedKeys(string, mode) abort
|
||||
call feedkeys(a:string, a:mode)
|
||||
endfunction
|
||||
|
||||
function! ale#completion#Show(response, completion_parser) abort
|
||||
" Remember the old omnifunc value, if there is one.
|
||||
" If we don't store an old one, we'll just never reset the option.
|
||||
@@ -129,7 +120,7 @@ function! ale#completion#Show(response, completion_parser) abort
|
||||
let b:ale_completion_parser = a:completion_parser
|
||||
let &l:omnifunc = 'ale#completion#OmniFunc'
|
||||
call s:ReplaceCompleteopt()
|
||||
call ale#completion#FeedKeys("\<C-x>\<C-o>", 'n')
|
||||
call ale#util#FeedKeys("\<C-x>\<C-o>", 'n')
|
||||
endfunction
|
||||
|
||||
function! s:CompletionStillValid(request_id) abort
|
||||
|
||||
Reference in New Issue
Block a user