Ramilito / kubectl.nvim

Apache License 2.0
165 stars 5 forks source link

chore: option to op-out of informer #274

Closed Ramilito closed 2 weeks ago

Ramilito commented 2 weeks ago

The Resourcebuilder:view starts an informer on all curl cmds, that's a problem when getting a resource that doesn't support the watch feature such as metrics.

Add an option such as:

      if opts.cmd == "curl" and opts.with_informer then
        informer.start(builder)
      end

And clean up the metrics check in informer.lua

mosheavni commented 2 weeks ago

https://github.com/Ramilito/kubectl.nvim/pull/275