Skip to content

Incorrect layout when opening opencode in vim-floatterm #455

@svanharmelen

Description

@svanharmelen

Environment

If you are using neovim, just run :checkhealth floaterm and post the content

below.

    1 ==============================================================================
    2 floaterm:                                                                   ✅
    3
    4 common
    5 - Platform: Darwin
    6 - Nvim: NVIM v0.11.3
    7 - Plugin: 416f5a2b0
    8
    9
   10 terminal
   11 - ✅ OK Terminal emulator is available
   12
   13 floating
   14 - ✅ OK Floating window is available
   15

Configurations related to vim-floaterm in vimrc(i.e. g:floaterm_xxx):

  {
    'voldikss/vim-floaterm',
    keys = {
      { '<leader>gg', ':nohlsearch<Bar>FloatermNew --height=0.95 --width=0.7 lazygit<CR>',  silent = true },
      { '<leader>cc', ':nohlsearch<Bar>FloatermNew --height=0.95 --width=0.7 opencode<CR>', silent = true },
    },
    config = function()
      vim.g.floaterm_borderchars = '─│─│╭╮╯╰'
      vim.g.floaterm_title = ''
    end,
  },

Describe your question, feature request, or bug.

Incorrect layout when opening opencode in vim-floatterm (see screenshot). Not sure if this is an issue with opencode or with vim-floatterm, but I don't have the same issue with (for example) lazygit.

Screenshots(Optional, GIF is better)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions