fix: error messages opening terminal in dir
This commit is contained in:
parent
64d2f305d3
commit
90acbdbbff
1 changed files with 2 additions and 0 deletions
|
|
@ -140,6 +140,8 @@ M.open_terminal = {
|
||||||
callback = function()
|
callback = function()
|
||||||
local dir = oil.get_current_dir()
|
local dir = oil.get_current_dir()
|
||||||
if dir then
|
if dir then
|
||||||
|
local bufnr = vim.api.nvim_create_buf(false, true)
|
||||||
|
vim.api.nvim_set_current_buf(bufnr)
|
||||||
vim.fn.termopen(vim.o.shell, { cwd = dir })
|
vim.fn.termopen(vim.o.shell, { cwd = dir })
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue