REFACTOR: Annotations for autocompletion, reworked how projects are made
and handled, wrote the c file replacing the copied python code.
This commit is contained in:
+3
-2
@@ -69,6 +69,7 @@ function M.init_readme(path)
|
||||
end
|
||||
|
||||
---@param cmd table
|
||||
---@param opts VernTerminalConfig
|
||||
---@return integer, integer?
|
||||
function M.term(cmd, opts)
|
||||
opts = opts or {}
|
||||
@@ -110,13 +111,13 @@ function M.term(cmd, opts)
|
||||
})
|
||||
end
|
||||
if opts.mode.type == "split" then
|
||||
if opts.mode.win.split.type == "vertical" then
|
||||
if opts.mode.win.split.direction == "vertical" then
|
||||
if opts.mode.win.split.anchor == "right" then
|
||||
vim.cmd("set splitright")
|
||||
end
|
||||
vim.cmd(opts.mode.win.split.size .. " vsplit")
|
||||
end
|
||||
if opts.mode.win.split.type == "horizontal" then
|
||||
if opts.mode.win.split.direction == "horizontal" then
|
||||
if opts.mode.win.split.anchor == "bottom" then
|
||||
vim.cmd("set splitbelow")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user