From 18751830d1d73c87c19019d56ddd8014db5a433b Mon Sep 17 00:00:00 2001 From: Aotrix Date: Mon, 24 Feb 2025 16:26:54 +0100 Subject: snippets work for C++ --- lua/aotrix/plugins/lsp.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lua/aotrix/plugins/lsp.lua') diff --git a/lua/aotrix/plugins/lsp.lua b/lua/aotrix/plugins/lsp.lua index d24b0d0..0b02ad4 100644 --- a/lua/aotrix/plugins/lsp.lua +++ b/lua/aotrix/plugins/lsp.lua @@ -24,7 +24,12 @@ return { fname) or require("lspconfig.util").find_git_ancestor(fname) end, - capabilities = {offsetEncoding = {"utf-16"}}, + capabilities = { + offsetEncoding = {"utf-16"}, + textDocument = { + completion = {completionItem = {snippetSupport = true}} + } + }, cmd = { "clangd", "--background-index", "--clang-tidy", "--header-insertion=iwyu", "--completion-style=detailed", -- cgit v1.2.3