Alloyed / lua-lsp

A Lua language server
MIT License
288 stars 21 forks source link

Insert functions as snippets #32

Closed kattrali closed 4 years ago

kattrali commented 4 years ago

This changeset adds snippet support to function or method completion items so that an editor will insert tab stops for parameters. I need to go back through the spec to ensure I haven't missed anything, but I wanted to open it up so others could take a look and so far for my uses it works well.

Changes

Screenshots

Before: lua-lsp-now

After: lua-lsp-snippets

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.1%) to 80.164% when pulling 74d593dad3fae55b07bc1a8ae3a3034bcc422a87 on kattrali:kattrali/insert-fns-as-snippets into 905e71f9a97ea6366deb386503f9d976c87d9bab on Alloyed:master.