Checklist
Neovim version (nvim -v)
v0.10.2
Operating system/version
Fedora 41 on WSL
Terminal/GUI
Windows Terminal
Describe the bug
Accepting a copilot suggestion inserts the text at beginning of the line instead of respecting indentation. This has been discussed here zbirenbaum/copilot-cmp#11 but I'm having a hard time trying to apply this settings on AstroNvim (maybe I just don't know how or where to configure this).
Steps to Reproduce
{ import = "astrocommunity.completion.copilot-cmp"},
- Try to accept a suggestion.
Expected behavior
Indentation should be respected.
Screenshots
No response
Additional Context
No response
Minimal configuration
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
-- install plugins
local plugins = {
{ "AstroNvim/AstroNvim", import = "astronvim.plugins" },
{ "AstroNvim/astrocommunity", { import = "astrocommunity.completion.copilot-cmp"} },
-- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
-- add anything else here (autocommands, vim.filetype, etc.)
Checklist
repro.luaprovided belowNeovim version (nvim -v)
v0.10.2
Operating system/version
Fedora 41 on WSL
Terminal/GUI
Windows Terminal
Describe the bug
Accepting a copilot suggestion inserts the text at beginning of the line instead of respecting indentation. This has been discussed here zbirenbaum/copilot-cmp#11 but I'm having a hard time trying to apply this settings on AstroNvim (maybe I just don't know how or where to configure this).
Steps to Reproduce
{ import = "astrocommunity.completion.copilot-cmp"},Expected behavior
Indentation should be respected.
Screenshots
No response
Additional Context
No response
Minimal configuration