This plugin provides some other plugins integration.
LSP spec has textDocument/completion
feature that add ability inteligent completion to vim.
The feature will returns CompletionItem
that has textEdit/additionalTextEdits
and support snippet text.
- textEdit
- To enable complex completion.
- For example, completion done on
</div#>
then the server can correct indent size.
- additionalTextEdits
- To enable auto-import for some other modules/packages.
This plugins may enables textEdit/additionalTextEdits
if it possible.
- Support
completionItem/resolve
atCompleteDone
. - Support textEdit/additionalTextEdits.
- Support snippet text expansion.
- Support snippet text expansion.
- vim-lamp has already supported textEdit/additionalTextEdits/executeCommand/floatinw-docs.
- Support textEdit/additionalTextEdits at CompleteDone.
- Snippet completion.
- Snippet completion.
lua require'nvim_lsp'.gopls.setup{
\ capabilities = {
\ textDocument = {
\ completion = {
\ completionItem = {
\ snippetSupport = true
\ }
\ }
\ }
\ },
\ init_options = {
\ usePlaceholders = true,
\ completeUnimported = true
\ }
\ }