mirror of
https://github.com/NotAShelf/specs.nvim.git
synced 2024-11-01 11:01:16 +00:00
feat: added check barrier for nvim-api dev-version
This commit is contained in:
parent
9444b5df95
commit
0792aaebf8
1 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,11 @@ function M.show_specs(popup)
|
|||
vim.api.nvim_set_option_value("winblend", bl, { win = win_id })
|
||||
end
|
||||
if dm ~= nil then
|
||||
config["col"][false] = dm[2]
|
||||
if type(config["col"]) == "table" then
|
||||
config["col"][false] = dm[2]
|
||||
else
|
||||
config["col"] = dm[2]
|
||||
end
|
||||
vim.api.nvim_win_set_config(win_id, config)
|
||||
vim.api.nvim_win_set_width(win_id, dm[1])
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue