mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(terminal): user options
This commit is contained in:
parent
0b08d280b6
commit
334895c5bb
1 changed files with 3 additions and 2 deletions
|
@ -63,8 +63,9 @@ local terminals = {}
|
|||
function M.open(cmd, opts)
|
||||
local id = vim.v.count1
|
||||
opts = Snacks.config.get("terminal", defaults --[[@as snacks.terminal.Opts]], opts)
|
||||
opts.win = Snacks.win.resolve("terminal", opts.win)
|
||||
opts.win.position = opts.win.position or (cmd and "float" or "bottom")
|
||||
opts.win = Snacks.win.resolve("terminal", {
|
||||
position = cmd and "float" or "bottom",
|
||||
}, opts.win)
|
||||
opts.win.wo.winbar = opts.win.wo.winbar or (opts.win.position == "float" and "" or (id .. ": %{b:term_title}"))
|
||||
|
||||
if opts.override then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue