Skip to content

File/buffer context does not get added/Copilot cannot see added context #1926

Answered by mbudde
3ZsForInsomnia asked this question in Q&A
Discussion options

You must be logged in to vote

I have the same problem and I have narrowed it down to an issue with the nvim-treesitter/nvim-treesitter-context plugin. If I add that to the minimal config, context seems to stop working.

---@diagnostic disable: missing-fields

--[[
NOTE: Set the config path to enable the copilot adapter to work.
It will search the following paths for a token:
  - "$CODECOMPANION_TOKEN_PATH/github-copilot/hosts.json"
  - "$CODECOMPANION_TOKEN_PATH/github-copilot/apps.json"
--]]
vim.env["CODECOMPANION_TOKEN_PATH"] = vim.fn.expand("~/.config")

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

-- Your CodeCompanion setup
l…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@3ZsForInsomnia
Comment options

@3ZsForInsomnia
Comment options

@3ZsForInsomnia
Comment options

@olimorris
Comment options

Comment options

You must be logged in to vote
2 replies
@jinzhongjia
Comment options

@jinzhongjia
Comment options

Comment options

You must be logged in to vote
2 replies
@olimorris
Comment options

@3ZsForInsomnia
Comment options

Answer selected by 3ZsForInsomnia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants