Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .claude/settings.local.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
"permissions": {
"allow": [
"Bash(python3:*)",
"Bash(git pull:*)"
"Bash(git pull:*)",
"Read(//Users/mosab/.config/jj/**)",
"Read(//Users/mosab/**)",
"Bash(jj nt *)",
"Bash(gh --version)",
"Bash(gh auth *)",
"Bash(brew info *)",
"Bash(brew upgrade *)",
"Bash(arch -arm64 brew upgrade gh)",
"Bash(jc submit *)"
]
}
}
9 changes: 1 addition & 8 deletions nvim/lua/plugins/astrocore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,16 @@ return {
},
-- Insert mode mappings for completion
i = {
-- Tab key for accepting completions (including Copilot)
["<Tab>"] = {
function()
-- First try to accept Copilot suggestion
if vim.g.ai_accept and vim.g.ai_accept() then
return
end
-- If no Copilot suggestion, try blink.cmp
if require("blink.cmp").is_visible() then
require("blink.cmp").accept()
else
-- Fallback to regular tab
return "<Tab>"
end
end,
expr = true,
desc = "Accept completion or Copilot suggestion",
desc = "Accept completion",
},
-- Shift-Tab for previous completion
["<S-Tab>"] = {
Expand Down
71 changes: 0 additions & 71 deletions nvim/lua/plugins/copilot.lua

This file was deleted.

15 changes: 0 additions & 15 deletions nvim/lua/polish.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,3 @@ vim.api.nvim_create_autocmd("FileType", {
vim.opt_local.spelllang = "en_us"
end,
})

-- GitHub Copilot performance optimization for large files
-- Disable Copilot for files larger than 100KB to improve performance
vim.api.nvim_create_autocmd("BufReadPre", {
pattern = "*",
callback = function()
local file = vim.fn.expand("<afile>")
local size = vim.fn.getfsize(file)

-- Disable Copilot for files larger than 100KB or if size cannot be determined
if size > 100000 or size == -2 then
vim.b.copilot_enabled = false
end
end,
})