From 47efef83802b26bd2ff7193b24af4c7f747dc145 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Tue, 7 Jan 2025 16:32:45 +0100 Subject: [PATCH] fix: assert vim.lsp.config fn exists before calling (#927) --- plugin/blink-cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/blink-cmp.lua b/plugin/blink-cmp.lua index 0a917491..3b7c46a8 100644 --- a/plugin/blink-cmp.lua +++ b/plugin/blink-cmp.lua @@ -1,4 +1,4 @@ -if vim.fn.has('nvim-0.11') == 1 then +if vim.fn.has('nvim-0.11') == 1 and vim.lsp.config then vim.lsp.config('*', { capabilities = require('blink.cmp').get_lsp_capabilities(), })