diff options
Diffstat (limited to '.config/nvim/lua')
-rw-r--r-- | .config/nvim/lua/plugins/cmp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 677544c..a8e04d7 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua | |||
@@ -56,7 +56,7 @@ return { | |||
56 | cmp.setup({ | 56 | cmp.setup({ |
57 | enabled = function() | 57 | enabled = function() |
58 | -- disable autocompletion in telescope prompt | 58 | -- disable autocompletion in telescope prompt |
59 | local buftype = vim.api.nvim_buf_get_option(0, "buftype") | 59 | local buftype = vim.api.nvim_get_option_value("buftype", {}) |
60 | 60 | ||
61 | return buftype ~= "prompt" | 61 | return buftype ~= "prompt" |
62 | end, | 62 | end, |