From d223782112c158c02e2adb39773aa46560d09d8e Mon Sep 17 00:00:00 2001 From: louib Date: Fri, 3 May 2024 11:05:39 -0400 Subject: [PATCH] feat: allow enabling copilot with text files --- flakes/nvim/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flakes/nvim/init.lua b/flakes/nvim/init.lua index b5f032b..e0b6076 100644 --- a/flakes/nvim/init.lua +++ b/flakes/nvim/init.lua @@ -977,7 +977,10 @@ local function configure_copilot() -- filetypes here can be boolean values or functions that return a boolean value. -- See https://github.com/zbirenbaum/copilot.lua#filetypes yaml = false, - markdown = false, + markdown = function() + -- TODO we might also allow turning it on and off for the current buffer. + return os.getenv('NVIM_ENABLE_COPILOT_MARKDOWN') == 'true' + end, help = false, gitcommit = false, gitrebase = false,