Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copilot.lua when used with cmdheight=0 makes statusline disappear #347

Open
simonmandlik opened this issue Dec 15, 2024 · 0 comments
Open

Comments

@simonmandlik
Copy link

Screen.Recording.2024-12-15.at.17.24.09.mov

Happens not only in unnamed buffers but on named as well.

MWE:

  1. nvim -u minimal_copilot.lua
  2. Enter insert mode

minimal_copilot.lua:

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  }
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "zbirenbaum/copilot.lua",
    event = "InsertEnter",
    opts = {}
  }
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.opt.cmdheight = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant