Skip to content

Full Support for SnippetTextEdits in CodeAction #412

Open
@IndianBoy42

Description

@IndianBoy42

Feature description

It would be nice to have support for SnippetTextEdits in code actions considering how much rust-analyzer uses it for assists

https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#snippet-textedit

its actually part of the upcoming 3.18 lsp protocol, but I don't know when that means neovim core will support it.
I don't know if native vim.snippets supports enough for it but actually either way it would be nice for the snippet function to be overridable so, for example, LuaSnip users can use it with LuaSnip

Reference: L3MON4D3/LuaSnip#235

Half? an implementation previously: https://github.com/simrat39/rust-tools.nvim/tree/snippet_text_edits

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions