Skip to content

Instantly share code, notes, and snippets.

@uga-rosa
Last active May 12, 2023 16:47
Show Gist options
  • Save uga-rosa/4052972f7ef98e013b79c5197f6b1ff9 to your computer and use it in GitHub Desktop.
Save uga-rosa/4052972f7ef98e013b79c5197f6b1ff9 to your computer and use it in GitHub Desktop.
if vim.api.orig == nil then
vim.api.orig = {}
for name, func in pairs(vim.api) do
vim.api.orig[name] = func
end
local default_win_config = {
border = "single",
}
function vim.api.nvim_open_win(buffer, enter, config)
config = vim.tbl_extend("keep", config, default_win_config)
return vim.api.orig.nvim_open_win(buffer, enter, config)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment