Closed glepnir closed 4 years ago
You can set the usePlaceholders
for init_option.
My gopls's setting is below.
lua require'nvim_lsp'.gopls.setup{
\ capabilities = {
\ textDocument = {
\ completion = {
\ completionItem = {
\ snippetSupport = true
\ }
\ }
\ }
\ },
\ init_options = {
\ usePlaceholders = true,
\ }
\ }
OK I will try it。
You can set the usePlaceholders for init_option.
My gopls's setting is below. lua require'nvim_lsp'.gopls.setup{ \ capabilities = { \ textDocument = { \ completion = { \ completionItem = { \ snippetSupport = true \ } \ } \ } \ }, \ init_options = { \ usePlaceholders = true, \ } \ }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
It seems can be closed.
@hrsh7th Hi. I use the completion-nvim with my custom lsp based on neovim built-in lsp. I don't get function params snippets. I think i missed something. check the server setting .the snippetSupport is true.