4
4
module Neovim
5
5
# Class representing an +nvim+ buffer.
6
6
#
7
- # The methods documented here were generated using NVIM v0.10.4
7
+ # The methods documented here were generated using NVIM v0.11.0
8
8
class Buffer < RemoteObject
9
9
attr_reader :lines
10
10
@@ -145,7 +145,7 @@ def check_index(index, min)
145
145
@method attach(send_buffer, opts)
146
146
See +:h nvim_buf_attach()+
147
147
@param [Boolean] send_buffer
148
- @param [Hash ] opts
148
+ @param [Dict ] opts
149
149
@return [Boolean]
150
150
151
151
@method detach
@@ -182,7 +182,7 @@ def check_index(index, min)
182
182
@param [Integer] start_col
183
183
@param [Integer] end_row
184
184
@param [Integer] end_col
185
- @param [Hash ] opts
185
+ @param [Dict ] opts
186
186
@return [Array<String>]
187
187
188
188
@method get_offset(index)
@@ -202,14 +202,14 @@ def check_index(index, min)
202
202
@method get_keymap(mode)
203
203
See +:h nvim_buf_get_keymap()+
204
204
@param [String] mode
205
- @return [Array<Hash >]
205
+ @return [Array<Dict >]
206
206
207
207
@method set_keymap(mode, lhs, rhs, opts)
208
208
See +:h nvim_buf_set_keymap()+
209
209
@param [String] mode
210
210
@param [String] lhs
211
211
@param [String] rhs
212
- @param [Hash ] opts
212
+ @param [Dict ] opts
213
213
@return [void]
214
214
215
215
@method del_keymap(mode, lhs)
@@ -256,7 +256,7 @@ def check_index(index, min)
256
256
@param [String] name
257
257
@param [Integer] line
258
258
@param [Integer] col
259
- @param [Hash ] opts
259
+ @param [Dict ] opts
260
260
@return [Boolean]
261
261
262
262
@method get_mark(name)
@@ -273,7 +273,7 @@ def check_index(index, min)
273
273
See +:h nvim_buf_create_user_command()+
274
274
@param [String] name
275
275
@param [Object] command
276
- @param [Hash ] opts
276
+ @param [Dict ] opts
277
277
@return [void]
278
278
279
279
@method del_user_command(name)
@@ -283,8 +283,8 @@ def check_index(index, min)
283
283
284
284
@method get_commands(opts)
285
285
See +:h nvim_buf_get_commands()+
286
- @param [Hash ] opts
287
- @return [Hash ]
286
+ @param [Dict ] opts
287
+ @return [Dict ]
288
288
289
289
@method get_number
290
290
See +:h nvim_buf_get_number()+
@@ -297,12 +297,21 @@ def check_index(index, min)
297
297
@param [Integer] line_end
298
298
@return [void]
299
299
300
+ @method add_highlight(ns_id, hl_group, line, col_start, col_end)
301
+ See +:h nvim_buf_add_highlight()+
302
+ @param [Integer] ns_id
303
+ @param [String] hl_group
304
+ @param [Integer] line
305
+ @param [Integer] col_start
306
+ @param [Integer] col_end
307
+ @return [Integer]
308
+
300
309
@method set_virtual_text(src_id, line, chunks, opts)
301
310
See +:h nvim_buf_set_virtual_text()+
302
311
@param [Integer] src_id
303
312
@param [Integer] line
304
313
@param [Array] chunks
305
- @param [Hash ] opts
314
+ @param [Dict ] opts
306
315
@return [Integer]
307
316
308
317
@method get_option(name)
@@ -320,23 +329,23 @@ def check_index(index, min)
320
329
See +:h nvim_buf_get_extmark_by_id()+
321
330
@param [Integer] ns_id
322
331
@param [Integer] id
323
- @param [Hash ] opts
332
+ @param [Dict ] opts
324
333
@return [Array<Integer>]
325
334
326
335
@method get_extmarks(ns_id, start, end, opts)
327
336
See +:h nvim_buf_get_extmarks()+
328
337
@param [Integer] ns_id
329
338
@param [Object] start
330
339
@param [Object] end
331
- @param [Hash ] opts
340
+ @param [Dict ] opts
332
341
@return [Array]
333
342
334
343
@method set_extmark(ns_id, line, col, opts)
335
344
See +:h nvim_buf_set_extmark()+
336
345
@param [Integer] ns_id
337
346
@param [Integer] line
338
347
@param [Integer] col
339
- @param [Hash ] opts
348
+ @param [Dict ] opts
340
349
@return [Integer]
341
350
342
351
@method del_extmark(ns_id, id)
@@ -345,15 +354,6 @@ def check_index(index, min)
345
354
@param [Integer] id
346
355
@return [Boolean]
347
356
348
- @method add_highlight(ns_id, hl_group, line, col_start, col_end)
349
- See +:h nvim_buf_add_highlight()+
350
- @param [Integer] ns_id
351
- @param [String] hl_group
352
- @param [Integer] line
353
- @param [Integer] col_start
354
- @param [Integer] col_end
355
- @return [Integer]
356
-
357
357
@method clear_namespace(ns_id, line_start, line_end)
358
358
See +:h nvim_buf_clear_namespace()+
359
359
@param [Integer] ns_id
0 commit comments