remote-nvim.nvim icon indicating copy to clipboard operation
remote-nvim.nvim copied to clipboard

Remote client launches with unexpected buffer

Open alloc33 opened this issue 11 months ago • 0 comments

My config:

    {
      'amitds1997/remote-nvim.nvim',
      version = '*',
      dependencies = {
        'nvim-lua/plenary.nvim',
        'MunifTanjim/nui.nvim',
        'nvim-telescope/telescope.nvim',
      },
      config = function()
        require('remote-nvim').setup {
          offline_mode = {
            enable = true,
            no_github = false
          },
          client_callback = function(port, _)
            local cmd = ('neovide --server localhost:%s'):format(port)
            vim.fn.jobstart(cmd, {
              detach = true,
              -- on_exit = ...,
            })
          end,
        }
      end,
    },

I get this when my 2nd neovide instance started (empty buffer with text: vim_host=true):

Image

Not sure I understand how to get rid of this [no-name] buffer.

My init.lua has this in the end (so it should open term buffer by default on nvim start):

...
vim.api.nvim_create_autocmd("VimEnter", {
  callback = function()
    vim.cmd('NoNeckPain')
    vim.cmd("terminal zsh")
  end,
})

alloc33 avatar Mar 04 '25 13:03 alloc33