Skip to content

Commit 42b33d9

Browse files
authored
Merge pull request #18 from MN-nagy/fix/blink-cmp-wsl2-freeze
Fixed a bug in blink.cmp causing editor freezes on WSL2 systems
2 parents e20ff84 + d04d64e commit 42b33d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,13 @@ require('lazy').setup({
881881
default = { 'lsp', 'path', 'snippets', 'lazydev' },
882882
providers = {
883883
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
884+
-- On WSL2, blink.cmp may cause the editor to freeze due to a known limitation.
885+
-- To address this issue, uncomment the following configuration:
886+
-- cmdline = {
887+
-- enabled = function()
888+
-- return vim.fn.getcmdtype() ~= ':' or not vim.fn.getcmdline():match "^[%%0-9,'<>%-]*!"
889+
-- end,
890+
-- },
884891
},
885892
},
886893

0 commit comments

Comments
 (0)