0

I'm using the cquery language server in my Neovim instance. In conjunction with the Languageclient-neovim plugin. This automatically also checks the code for errors in the file that I'm working. However, this also means it checks all the files in my workspace.

I was wondering if there was a possibility to only show errors that are specific to the file that I am working in. See the example below:

Example

I'm working in the file src/bag_rotation.cpp and I only want to filter the quickfix window to only show errors from that file.

3 Answers3

2

yes, I wrote a vim plugin, can do ":Keep" and ":Reject" on quickfix window (among other things).

https://github.com/romainl/vim-qf

You can just give the suitable pattern to do your filtering.

romainl
  • 186,200
  • 21
  • 280
  • 313
  • +1 Thanks that is very cool :) Can't accept upvote yet because my reputation score is not high enough. But this is what I'm looking for, so i'll accept this – Tim de Jager Jun 25 '18 at 08:01
  • Although it would be nice it could work in conjuction with ALE, as I'm using that for linting currently – Tim de Jager Jun 25 '18 at 08:03
  • The other suggestions probably have less overlap with other quickfix-related plugins, you should try them. – romainl Jun 25 '18 at 11:37
1

yes, I wrote a vim plugin, can do "grep" on quickfix window.

https://github.com/sk1418/QFGrep

You can just give the suitable pattern to do your filtering.

Kent
  • 189,393
  • 32
  • 233
  • 301
1

yes, I wrote a vim plugin gist, can do :Cfilter and :Cfilter! (invert search)

https://gist.github.com/PeterRincker/33345cf7fdeb9038611e4a338a0067f3

You can just give the suitable pattern to do your filtering.

:Cfilter /foo/
Peter Rincker
  • 43,539
  • 9
  • 74
  • 101