From f6e5dc0d44c757f4fc73fa4c28d05b7b05ff1650 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Wed, 2 Nov 2022 15:09:00 -0400 Subject: fix: don't complete in prompt ft --- lua/lvim/core/cmp.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/lvim/core/cmp.lua') diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua index 9306c557..58d427cb 100644 --- a/lua/lvim/core/cmp.lua +++ b/lua/lvim/core/cmp.lua @@ -130,6 +130,10 @@ M.config = function() lvim.builtin.cmp = { active = true, enabled = function() + local buftype = vim.api.nvim_buf_get_option(0, "buftype") + if buftype == "prompt" then + return false + end return lvim.builtin.cmp.active end, confirm_opts = { -- cgit v1.2.3