Shougo / deol.nvim

Dark powered shell interface for Vim/NeoVim
MIT License
331 stars 16 forks source link

"[No Name]" buffer is created when deol#start() fires #44

Closed glassesneo closed 5 months ago

glassesneo commented 5 months ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

neovimを起動後、二回目以降のdeol#start()でNo Nameのバッファが生成される

Environment Information (Required!)

config

[[plugins]]
repo = 'Shougo/deol.nvim'
on_map = { n = '<Leader>d' }
hooks_file = '$BASE_DIR/hooks/deol.lua'
-- deol.lua
--- lua_source {{{
local utils = require("utils")

vim.g["deol#floating_border"] = "rounded"
utils.map("n", "<Leader>d", function()
  vim.fn["deol#start"]({
    split = "farright",
    start_insert = true,
    toggle = true,
    winwidth = 45,
  })
end)
--- }}}

How to reproduce the problem from neovim/Vim startup (Required!)

  1. neovim起動後、deol#start()でターミナルを起動
  2. 一旦ターミナルのウィンドウをquitやtoggleで閉じ、再び起動

Screen shot

https://github.com/Shougo/deol.nvim/assets/61031352/a0770776-8174-4f99-88f7-47dd49cc0153

動画内ではdeol#start()にマッピングしているC-dを連打しています

Shougo commented 5 months ago

Fixed. Please update deol.nvim.