diff --git a/modules/home-manager/files/nvim/lua/plugins/completions.lua b/modules/home-manager/files/nvim/lua/plugins/completions.lua index 1804f52..0318318 100644 --- a/modules/home-manager/files/nvim/lua/plugins/completions.lua +++ b/modules/home-manager/files/nvim/lua/plugins/completions.lua @@ -23,8 +23,13 @@ return { [""] = cmp.mapping.confirm({ select = true }), }), sources = cmp.config.sources({ - { name = "nvim_lsp" }, - { name = "luasnip" }, -- For luasnip users. + { + name = "nvim_lsp", + entry_filter = function(entry) + return require("cmp.types").lsp.CompletionItemKind[entry:get_kind()] ~= "Text" + end, + }, + { name = "luasnip" }, }, { { name = "buffer" }, }),