Skip to content

Commit

Permalink
fix: assert vim.lsp.config fn exists before calling (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco authored Jan 7, 2025
1 parent af1febb commit 47efef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/blink-cmp.lua
Original file line number Diff line number Diff line change
@@ -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(),
})
Expand Down

0 comments on commit 47efef8

Please sign in to comment.