Commit 96fe07f
authored
refactor(utils): Use vim.validate() form 1 for Neovim 0.11 compatibility (#506)
* refactor(utils): update deprecated Neovim 0.11 APIs
- Replaced vim.validate() with Lua-style type checks
- Future-proofed utility functions for Neovim 0.11+
* refactor(utils): switch to vim.validate() form 1 for Neovim 0.11+
Replaced custom assert() checks with official vim.validate() form 1,
as recommended in Neovim 0.11+ to ensure better consistency with
core APIs and forward compatibility.
* refactor(utils): restore some deleted comments1 parent 000448d commit 96fe07f
1 file changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 40 | + | |
45 | 41 | | |
46 | 42 | | |
47 | 43 | | |
| |||
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
| 99 | + | |
104 | 100 | | |
105 | 101 | | |
106 | 102 | | |
| |||
122 | 118 | | |
123 | 119 | | |
124 | 120 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
| |||
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
138 | | - | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
168 | 164 | | |
169 | 165 | | |
170 | 166 | | |
171 | | - | |
| 167 | + | |
172 | 168 | | |
173 | 169 | | |
174 | 170 | | |
| |||
0 commit comments