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

Jump to next error - and ignore warnings #893

Closed
andys8 opened this issue Jun 20, 2019 · 3 comments
Closed

Jump to next error - and ignore warnings #893

andys8 opened this issue Jun 20, 2019 · 3 comments

Comments

@andys8
Copy link
Contributor

andys8 commented Jun 20, 2019

Is your feature request related to a problem? Please describe.
If there are several warning but one error, I'd want coc-diagnostic-next to jump to the error.

Describe the solution you'd like
Either change the jump order depending on the level (warning vs error) or add a separate command coc-diagnostic-next-error.

Describe alternatives you've considered
w0rp/ale supports this.

  <Plug>(ale_previous) - ALEPrevious
  <Plug>(ale_previous_wrap) - ALEPreviousWrap
  <Plug>(ale_previous_error) - ALEPrevious -error
  <Plug>(ale_previous_wrap_error) - ALEPrevious -wrap -error
  <Plug>(ale_previous_warning) - ALEPrevious -warning
  <Plug>(ale_previous_wrap_warning) - ALEPrevious -wrap -warning
  <Plug>(ale_next) - ALENext
  <Plug>(ale_next_wrap) - ALENextWrap
  <Plug>(ale_next_error) - ALENext -error
  <Plug>(ale_next_wrap_error) - ALENext -wrap -error
  <Plug>(ale_next_warning) - ALENext -warning
  <Plug>(ale_next_wrap_warning) - ALENext -wrap -warning

https://github.com/w0rp/ale/blob/9ad8fd6a1bdff5f0c80cf921df5628d1d322cf82/doc/ale.txt#L2507-L2519

@chemzqm
Copy link
Member

chemzqm commented Jun 20, 2019

:h coc-diagnostic-prev, there's also example in Readme.

@chemzqm chemzqm closed this as completed Jun 20, 2019
@andys8 andys8 changed the title Jump to next error Jump to next error - and ignore warnings Jun 20, 2019
@andys8
Copy link
Contributor Author

andys8 commented Jun 20, 2019

@chemzqm Is there maybe a misunderstanding? I updated the headline. Ale supports options to navigate to errors directly and ignoring warnings. I can't see anything related in the README or help for coc-diagnostic-prev/coc-diagnostic-next

@chemzqm chemzqm reopened this Jun 20, 2019
@andys8
Copy link
Contributor Author

andys8 commented Jun 20, 2019

Thanks @chemzqm :)

andys8 added a commit to andys8/dotfiles that referenced this issue Jun 20, 2019
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

2 participants