mgedmin / coverage-highlight.vim

Vim plugin to highlight Python source code lines that lack test coverage
MIT License
56 stars 5 forks source link

Additional language support #23

Open particledecay opened 3 years ago

particledecay commented 3 years ago

First, this project is awesome. Nicely done!

Second, do you have any plans to support additional languages? Would be nice if this accepted plugins somehow (like coc.nvim, ale, etc) so folks could build out support for other languages.

mgedmin commented 3 years ago

I have no concrete plans. I did name this plugin coverage-highlight instead of python-coverage with the nebulous idea of supporting other languages in the future.

The backend half of the Python code that deals with sign placement is generic and ought to be able to handle any language. The frontend half is not currently nicely structured, but that should be fixable.

I think it would be simpler to add support for other languages directly in this repository instead of designing a plugin interface.

Do you have a specific language in mind?

particledecay commented 3 years ago

My first thought was Go, since VS Code's golang.go extension does this (that's the googling that led me here in the first place lol).

mgedmin commented 3 years ago

I think there already exists a vim plugin that supports go coverage highlighting (vim-go; see screenshots in #22).

particledecay commented 3 years ago

Oh, I already had vim-go installed and totally missed the :GoCoverage command. Thank you!

In any case, I work with Python and JavaScript as well, and it just seems like a really cool idea to have a plugin-based project that could manage all sorts of different languages.