Last active
May 12, 2023 16:47
-
-
Save uga-rosa/4052972f7ef98e013b79c5197f6b1ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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