Skip to content

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

Merged
deathbeam merged 2 commits into
CopilotC-Nvim:mainfrom
ouuan:function-layout
Apr 1, 2025
Merged

feat: accept a function that returns the layout to use#1087
deathbeam merged 2 commits into
CopilotC-Nvim:mainfrom
ouuan:function-layout

Conversation

@ouuan

@ouuan ouuan commented Apr 1, 2025

Copy link
Copy Markdown
Contributor

This resolves #1080.

Example:

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

Comment thread lua/CopilotChat/ui/chat.lua Outdated
@deathbeam
deathbeam merged commit 2e1a7ff into CopilotC-Nvim:main Apr 1, 2025
@deathbeam

Copy link
Copy Markdown
Collaborator

Thanks!

@all-contributors add @ouuan for docs and code

@allcontributors

Copy link
Copy Markdown
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