sim
sim
This works mostly, but one thing missing is that TextEdits give back a range, which can be used for example replacing multiple lines of text with something else, idk if...
that's fair, i'll try to see what I can do on rust-tools' side then
Thanks for this, I'll check it out and point out issues if any! Would be nice if we finally get this into luasnip and rust-tools
Ok so this works pretty good, thanks for the work. One small issue though, for some reason rust-analyzer sends multiple snippet text edits in one call, even though their docs...
Btw i pushed a separate branch if anyone wants to test it out. https://github.com/simrat39/rust-tools.nvim/commit/95a6f90b4ba290fa07662a660286cde60cc35831 Use it like this: ```lua rt.setup({ tools = { snippet_func = function(edits, bufnr, offset_encoding, old_func) require("luasnip.extras.lsp").apply_text_edits(...
> Mhmmm that's annoying, I guess we could filter it here, but would be nicer to accommodate for languageserver-quirks in their respective plugins imo. Wdyt? Yeah for sure, but I...
looks good as a draft, we definitely need options to center and make the window fit the content
This will need pretty much a rewrite of the whole thing but it'll slowly get done
Should be fixed now
Not sure but check this out https://github.com/antoinemadec/FixCursorHold.nvim