From 55b07dee21ee5306624e16dd90c2b3c9c0f3ddde Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 21 May 2024 19:22:41 +0200 Subject: [PATCH] fix(nvim-snippets): enable global friendly-snippets. See #3240 --- lua/lazyvim/plugins/coding.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/coding.lua b/lua/lazyvim/plugins/coding.lua index 589e4b1c..9e623296 100644 --- a/lua/lazyvim/plugins/coding.lua +++ b/lua/lazyvim/plugins/coding.lua @@ -90,7 +90,13 @@ return { "nvim-cmp", dependencies = { { "rafamadriz/friendly-snippets" }, - { "garymjr/nvim-snippets", opts = { friendly_snippets = true } }, + { + "garymjr/nvim-snippets", + opts = { + friendly_snippets = true, + global_snippets = { "all", "global" }, + }, + }, }, opts = function(_, opts) opts.snippet = {