You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@diagnosticdisable: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 setuplocalplugins= {
{
"olimorris/codecompanion.nvim",
dependencies= {
{ "nvim-treesitter/nvim-treesitter", build=":TSUpdate" },
{ "nvim-lua/plenary.nvim" },
-- Test with blink.cmp
{
"saghen/blink.cmp",
lazy=false,
version="*",
opts= {
keymap= {
preset="enter",
["<S-Tab>"] = { "select_prev", "fallback" },
["<Tab>"] = { "select_next", "fallback" },
},
sources= {
default= { "lsp", "path", "buffer", "codecompanion" },
cmdline= {}, -- Disable sources for command-line mode
},
},
},
-- Test with nvim-cmp-- { "hrsh7th/nvim-cmp" },
},
opts= {
--Refer to: https://github.com/olimorris/codecompanion.nvim/blob/main/lua/codecompanion/config.luastrategies= {
--NOTE: Change the adapter as requiredchat= { adapter="copilot" },
inline= { adapter="copilot" },
},
opts= {
log_level="DEBUG",
},
display= {
chat= {
show_settings=true,
},
},
},
},
}
require("lazy.minit").repro({ spec=plugins })
-- Setup Tree-sitterlocalts_status, treesitter=pcall(require, "nvim-treesitter.configs")
ifts_statusthentreesitter.setup({
ensure_installed= { "lua", "markdown", "markdown_inline", "yaml" },
highlight= { enable=true },
})
end-- Setup nvim-cmp-- local cmp_status, cmp = pcall(require, "cmp")-- if cmp_status then-- cmp.setup({-- mapping = cmp.mapping.preset.insert({-- ["<C-b>"] = cmp.mapping.scroll_docs(-4),-- ["<C-f>"] = cmp.mapping.scroll_docs(4),-- ["<C-Space>"] = cmp.mapping.complete(),-- ["<C-e>"] = cmp.mapping.abort(),-- ["<CR>"] = cmp.mapping.confirm({ select = true }),-- -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.-- }),-- })-- end
Error messages
Error executing Lua callback: ...ecompanion.nvim/lua/codecompanion/strategies/chat/ui.lua:261: attempt to
index field 'settings' (a nil value)
stack traceback:
...ecompanion.nvim/lua/codecompanion/strategies/chat/ui.lua:261: in function 'render'
...ompanion.nvim/lua/codecompanion/strategies/chat/init.lua:233: in function 'chat'
...m/lazy/codecompanion.nvim/lua/codecompanion/commands.lua:115: in function <...m/lazy/codecompa
nion.nvim/lua/codecompanion/commands.lua:114>
Press ENTER or type command to continue
Log output
Is not created, never sent a request.
Health check output
No response
Describe the bug
I want to set
display = {
chat = {
show_settings = true,
},
},
and not have :CodeCompanionChat crash.
Reproduce the bug
nvim --clean -u minimal.lua :CodeCompanionChat
Adapter and model
Doesn't matter
Final checks
I have made sure this issue exists in the latest version of the plugin
I have tested with the minimal.lua file from above and have shared this
I have shared the contents of the log file
The text was updated successfully, but these errors were encountered:
Your
minimal.lua
configError messages
Log output
Is not created, never sent a request.
Health check output
No response
Describe the bug
I want to set
and not have
:CodeCompanionChat
crash.Reproduce the bug
nvim --clean -u minimal.lua
:CodeCompanionChat
Adapter and model
Doesn't matter
Final checks
minimal.lua
file from above and have shared thisThe text was updated successfully, but these errors were encountered: