Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

与其他使用 quickfix 的插件冲突 #263

Open
gitsang opened this issue Nov 2, 2022 · 1 comment
Open

与其他使用 quickfix 的插件冲突 #263

gitsang opened this issue Nov 2, 2022 · 1 comment

Comments

@gitsang
Copy link

gitsang commented Nov 2, 2022

GIF 2022-11-2 11-12-20

和 dense-analysis/ale 插件一起运行时

:AsyncRun! go run main.go

运行后,如果再运行 :w 保存文件,quickfix 的内容就没了,应该如何解决?

asyncrun 插件配置

let g:asyncrun_open = 8

ale 插件配置

Plug 'dense-analysis/ale'
    " ale-setting {{{
    let g:ale_set_highlights = 1
    let g:ale_set_quickfix = 1
    let g:ale_sign_error = '✖'
    let g:ale_sign_warning = 'ℹ'
    let g:ale_statusline_format = ['✖ %d', 'ℹ %d', '✔ OK']
    let g:ale_echo_msg_error_str = 'E'
    let g:ale_echo_msg_warning_str = 'W'
    let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
    let g:ale_lint_on_enter = 1

    nmap sp <Plug>(ale_previous_wrap)
    nmap sn <Plug>(ale_next_wrap)
    "nmap <Leader>l :ALEToggle<CR>
    nmap <Leader>d :ALEDetail<CR>
    let g:ale_linters = {
        \ 'go': ['go vet', 'go fmt'],
        \ }
@gitsang
Copy link
Author

gitsang commented Nov 2, 2022

有找到一个办法,用 term 模式,不过还是想知道 quickfix 怎么解决。

:AsyncRun! -mode=term -focus=0 go run main.go

@gitsang gitsang changed the title 保存时 quickfix 窗口会被覆盖 与 dense-analysis/ale 插件冲突 Nov 2, 2022
@gitsang gitsang changed the title 与 dense-analysis/ale 插件冲突 与其他使用 quickfix 的插件冲突 Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant