Skip to content

Commit

Permalink
Fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
is0n committed Apr 15, 2022
1 parent 2e3b368 commit 9905c48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/fm-nvim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ local function createWin(cmd, suffix)
vim.api.nvim_win_set_option(M.win, "winblend", config.ui.float.blend)
M.closeCmd = function()
vim.api.nvim_win_close(M.win, true)
vim.api.nvim_buf_delete(M.buf, {force = true})
end
end

local function createSplit(cmd, suffix)
M.buf = vim.cmd(config.ui.split.direction .. " " .. config.ui.split.size .. "vnew")
M.buf = vim.call("bufnr", "%")
vim.cmd(config.ui.split.direction .. " " .. config.ui.split.size .. "vnew")
M.buf = vim.api.nvim_get_current_buf()
postCreation(suffix)
vim.fn.termopen(cmd, {on_exit = on_exit})
vim.api.nvim_command("startinsert")
Expand Down

0 comments on commit 9905c48

Please sign in to comment.