chottolabs / kznllm.nvim

Apache License 2.0
33 stars 8 forks source link

move more responsibilities into model specs #1

Closed chottolabs closed 4 months ago

chottolabs commented 4 months ago

Might be a slightly questionable refactor... so writing out some thoughts here.

high-level changes:

At the end of all these changes, most of the complex stuff is now sitting in model specs whereas the top-level module is just holding the stuff that's closest to neovim (i.e. key bindings, get visual selection, start job, cancel job, etc.)

some earlier changes were around simplifying get_visual_selection to just do the swap upfront to cut down any confusion and remove replace because it's only a few vim keys away anyways.

chottolabs commented 4 months ago

next up is some way to easily let me pick between model specs instead of having to hard code it in my nvim config