nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
974 stars 78 forks source link

Clangd Snippet Support Not Working #325

Closed saadparwaiz1 closed 3 years ago

saadparwaiz1 commented 3 years ago

My testing minimal init.vim Post your init.vim to help me reproduce this issue

let g:completion_enable_snippet = 'snippets.nvim'
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
require('lspconfig').clangd.setup {
  on_attach = require 'completion'.on_attach,
 capabilities = capabilities
}

How to reproduce Open up a C file and try to use one of the macro snippets as follows: https://user-images.githubusercontent.com/73385353/104222673-88822900-543a-11eb-9004-e98899862b02.mov

Expected behaviour Proper snippet completion