リビジョン | eade6d2118fcb65ebfe4f539f30678843c5732b5 (tree) |
---|---|
日時 | 2023-01-04 18:02:02 |
作者 | badcoff33 <none@none> |
コミッター | badcoff33 |
indicate dealyed close with color
@@ -41,7 +41,7 @@ function Popup_One_Liner() | ||
41 | 41 | vim.api.nvim_win_set_option( |
42 | 42 | self.winnr, |
43 | 43 | "winhighlight", |
44 | - "Normal:NormalFloat,NonText:NormalFloat,FloatBorder:NormalFloat" | |
44 | + "Normal:Pmenu,NonText:Pmenu,FloatBorder:Pmenu" | |
45 | 45 | ) |
46 | 46 | if duration ~= nil then |
47 | 47 | vim.fn.timer_start(duration, function() |
@@ -88,6 +88,11 @@ function Popup_One_Liner() | ||
88 | 88 | end |
89 | 89 | |
90 | 90 | local close = function() |
91 | + vim.api.nvim_win_set_option( | |
92 | + self.winnr, | |
93 | + "winhighlight", | |
94 | + "Normal:PmenuSel,NonText:PmenuSel,FloatBorder:PmenuSel" | |
95 | + ) | |
91 | 96 | vim.fn.timer_start(delayed_close_time, function() |
92 | 97 | if vim.api.nvim_win_is_valid(self.winnr) == true then |
93 | 98 | vim.api.nvim_win_close(self.winnr, true) |