diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-25 17:27:28 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-25 17:27:28 +0100 |
| commit | e7331dbe0fd99fe8a6f7dded036fdf09d43c61de (patch) | |
| tree | c668830ff3de6b5e635657a79c70251f3ae9c9b1 /lua/alpha/scratchs/draft.lua | |
| parent | 412f51cd7ad4ce610ecaf13210b52709fb3e0232 (diff) | |
| download | nvim-conf-e7331dbe0fd99fe8a6f7dded036fdf09d43c61de.tar.gz nvim-conf-e7331dbe0fd99fe8a6f7dded036fdf09d43c61de.zip | |
fix quotes, add scratch directory
Diffstat (limited to 'lua/alpha/scratchs/draft.lua')
| -rw-r--r-- | lua/alpha/scratchs/draft.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/alpha/scratchs/draft.lua b/lua/alpha/scratchs/draft.lua new file mode 100644 index 0000000..30cc365 --- /dev/null +++ b/lua/alpha/scratchs/draft.lua @@ -0,0 +1,9 @@ +function GlobalFunction() + local position_params = vim.lsp.util.make_position_params() + + vim.lsp.buf_request(0, "textDocument/completion", position_params, function(err, method, result) + if method ~= nil then + vim.lsp.util.apply_text_document_edit(method.items, 1) + end + end) +end |