A Neovim plugin enabling you to solve LeetCode problems.
fix(console): draw extmarks on `InsertLeave`
1 file changed, +6 -4
+6-4lua/leetcode-ui/popup/console/testcase.lua
| @@ -127,10 +127,12 @@ function Testcase:append(input) | ||
| 127 | 127 | end |
| 128 | 128 | |
| 129 | 129 | function Testcase:autocmds() |
| 130 | - self:on( | |
| 131 | - { "TextChanged", "TextChangedI", "TextChangedP", "TextChangedT" }, | |
| 132 | - function() self:draw_extmarks() end | |
| 133 | - ) | |
| 130 | + self:on({ | |
| 131 | + "TextChanged", | |
| 132 | + "TextChangedI", | |
| 133 | + "TextChangedP", | |
| 134 | + "InsertLeave", | |
| 135 | + }, function() self:draw_extmarks() end) | |
| 134 | 136 | end |
| 135 | 137 | |
| 136 | 138 | function Testcase:mount() |