diff options
author | Christian Chiarulli <[email protected]> | 2022-11-02 15:09:00 -0400 |
---|---|---|
committer | Christian Chiarulli <[email protected]> | 2022-11-02 15:09:00 -0400 |
commit | f6e5dc0d44c757f4fc73fa4c28d05b7b05ff1650 (patch) | |
tree | eaeb17d0b33dad52796fd90b1c909c03921a9da0 /lua/lvim/core | |
parent | f206ba152cc451a7b32967df897823e1ac4d9b5a (diff) |
fix: don't complete in prompt ft
Diffstat (limited to 'lua/lvim/core')
-rw-r--r-- | lua/lvim/core/cmp.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 = { |