zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 64 forks source link

Does filetypes fully disable sending code to Github servers? #272

Open krzkrzkrz opened 4 months ago

krzkrzkrz commented 4 months ago

At https://github.com/zbirenbaum/copilot.lua?tab=readme-ov-file#filetypes it says:

    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)?