fix #1519: disable completion in *only* shell command mode
When inside of git bash or WSL on windows, you may experience a hang with shell commands.
This commit is contained in:
parent
6ba2408cdf
commit
49abdb4e7b
6
init.lua
6
init.lua
|
@ -857,6 +857,12 @@ require('lazy').setup({
|
||||||
default = { 'lsp', 'path', 'snippets', 'lazydev' },
|
default = { 'lsp', 'path', 'snippets', 'lazydev' },
|
||||||
providers = {
|
providers = {
|
||||||
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
|
||||||
|
cmdline = {
|
||||||
|
-- ignores cmdline completions when executing shell commands
|
||||||
|
enabled = function()
|
||||||
|
return vim.fn.getcmdtype() ~= ':' or not vim.fn.getcmdline():match "^[%%0-9,'<>%-]*!"
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue