Expose get_selected_entry() from view module to main cmp module fixes #385 (#386)

* Expose get_selected_entry() from view module to main cmp module fixes #385

* add get_active_entry() also

* fix linting

* remove unused vars

Co-authored-by: alex.tylor <atylor@gmail.com>
This commit is contained in:
Alex Tylor
2021-10-22 09:47:55 +01:00
committed by GitHub
parent 8f92f57043
commit b546f50f09
5 changed files with 12 additions and 5 deletions

View File

@@ -389,7 +389,7 @@ core.confirm = function(self, e, option, callback)
},
['end'] = snippet_ctx.cursor,
},
newText = ''
newText = '',
} })
config.get().snippet.expand({
body = completion_item.textEdit.newText,