spellsitter.nvim
spellsitter.nvim copied to clipboard
@nospell query?
In general I'm very happy with the string spellchecking you just merged in #57, however it'd be nice if calls to require like require "shellwords" didn't spellcheck shellwords
I think I've been able to figure out a query works to find those regions:
(call
method: (identifier) @method_name
(#eq? @method_name "require")
arguments: ( argument_list (string (string_content) @nospell))
)
(though it's my first not trivial query, so not 100% sure)
Do you think it's feasible to also mark things as not needing spellchecking? Or really, is this something you'd consider either adding or accepting at all in the first place?
I'm happy for us to implement something like @nospell (in the sense I would accept a PR) but we'd need to:
- Define exactly what it means and how it interacts with
@spell. It might seem obvious, but it is more complex than you think. - Actually implement it, which I'd imagine would be quite a bit more complicated than just
@spell.