Skip to content

Commit

Permalink
fix(grug-far-nvim): Disable Copilot in grug-far buffers
Browse files Browse the repository at this point in the history
Co-authored-by: Landon Schropp <schroppl@gmail.com>
  • Loading branch information
mehalter and LandonSchropp committed Jul 12, 2024
1 parent d49eb95 commit 26e0364
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lua/astrocommunity/project/grug-far-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
return {
"MagicDuck/grug-far.nvim",
cmd = "GrugFar",
dependencies = {
specs = {
{
"AstroNvim/astroui",
---@type AstroUIOpts
Expand Down Expand Up @@ -30,6 +30,15 @@ return {
}
end,
},
{
"zbirenbaum/copilot.lua",
opts = {
filetypes = {
["grug-far"] = false,
["grug-far-history"] = false,
},
},
},
},
---@param opts GrugFarOptionsOverride
-- NOTE: Wrapping opts into a function, because `astrocore` can set vim options
Expand Down

2 comments on commit 26e0364

@josecalles
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mehalter @LandonSchropp When I try to use this grug-far plugin, I'm getting a timeout error as it attempts to search for the "copilot.lua" plugin even though I don't have it installed. Is this expected? It shows that it downloads it and then it just gets stuck.

@mehalter
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! That's a bug, copilot should be optional here. I will fix

Please sign in to comment.