mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(copilot-chat): setup cmp conditionally (#4716)
## Description Check for cmp before setting up copilot chat. ## Related Issue(s) For https://github.com/LazyVim/LazyVim/issues/4702 I would like to set up the cmp compatability later if possible, but this is a quick patch to allow copilot chat to work without cmp (for now). ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
81a4f3f690
commit
a86c25286b
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ return {
|
|||
},
|
||||
config = function(_, opts)
|
||||
local chat = require("CopilotChat")
|
||||
if pcall(require, "cmp") then
|
||||
require("CopilotChat.integrations.cmp").setup()
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("BufEnter", {
|
||||
pattern = "copilot-chat",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue