gsuuon / model.nvim

Neovim plugin for interacting with LLM's and building editor integrated prompts.
MIT License
328 stars 23 forks source link

Remove ns_id from extmark details #4

Closed ibash closed 1 year ago

ibash commented 1 year ago

Previously nvim_buf_set_extmark was crashing because of the unexpected key ns_id.

ibash commented 1 year ago

I don't know much about vimscript or lua, so feel free to change if it's not idiomatic or correct.

gsuuon commented 1 year ago

Thanks for taking a look at this! Can you add some repro steps so I can check the before/after behavior?

gsuuon commented 1 year ago

Looks like https://github.com/neovim/neovim/pull/22778 added ns_id to details, I see the error now after updating neovim-nightly. Fix looks good! Thanks