Skip to content

feat: accept a function that returns the layout to use #1087

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

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

ouuan
Copy link
Contributor

@ouuan ouuan commented Apr 1, 2025

This resolves #1080.

Example:

  window = {
    layout = function()
      if vim.o.columns > 2 * vim.o.lines then
        return 'vertical'
      else
        return 'horizontal'
      end
    end
  },

@deathbeam deathbeam merged commit 2e1a7ff into CopilotC-Nvim:main Apr 1, 2025
1 check passed
@deathbeam
Copy link
Collaborator

Thanks!

@all-contributors add @ouuan for docs and code

Copy link
Contributor

@deathbeam

I've put up a pull request to add @ouuan! 🎉

@ouuan ouuan deleted the function-layout branch April 1, 2025 16:59
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

Successfully merging this pull request may close these issues.

2 participants