Skip to content

Commit

Permalink
feat: allow enabling copilot with text files
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed May 3, 2024
1 parent 614de91 commit d223782
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flakes/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d223782

Please sign in to comment.