Skip to content

Commit

Permalink
nvim: disable copilot for env files
Browse files Browse the repository at this point in the history
  • Loading branch information
samialdury committed Oct 17, 2024
1 parent 5a5be59 commit b53e334
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .config/nvim/lua/plugins/ai.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
return {
{
"zbirenbaum/copilot.lua",
opts = {
filetypes = {
-- disable for `.env` files
env = false,
["."] = false,
sh = function()
if string.match(vim.fs.basename(vim.api.nvim_buf_get_name(0)), "^%.env.*") then
return false
end
return true
end,
},
},
},
}

0 comments on commit b53e334

Please sign in to comment.