sh = function ()
if string.match(vim.fs.basename(vim.api.nvim_buf_get_name(0)), '^%.env.*') then
-- disable for .env files
return false
end
return true
end,
Will this fully prevent Copilot from sending code to Github servers for suggestions when an env file is opened? Or is this configuration more about just disabling the plugin for this specific filetype (which assumes contents of the file are still being transmitted)?
At https://github.com/zbirenbaum/copilot.lua?tab=readme-ov-file#filetypes it says:
Will this fully prevent Copilot from sending code to Github servers for suggestions when an
env
file is opened? Or is this configuration more about just disabling the plugin for this specific filetype (which assumes contents of the file are still being transmitted)?