Skip to content

Commit

Permalink
feat: optional copilot in yaml files (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
louib-bitgo authored Jul 30, 2024
1 parent 97b0241 commit fa80a67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flakes/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,9 @@ local function configure_copilot()
filetypes = {
-- filetypes here can be boolean values or functions that return a boolean value.
-- See https://github.com/zbirenbaum/copilot.lua#filetypes
yaml = false,
yaml = function()
return os.getenv('NVIM_ENABLE_COPILOT') == 'true'
end,
markdown = function()
-- TODO we might also allow turning it on and off for the current buffer.
return os.getenv('NVIM_ENABLE_COPILOT_MARKDOWN') == 'true'
Expand Down

0 comments on commit fa80a67

Please sign in to comment.