neovim 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6261883caf16dbd51bb9b1a869b61cf71597615e32c51af87727ea25b90f8fcd
4
- data.tar.gz: 33053c2596c20db1e6314ff38c23f3ca091d994736c9852a45fc3237dcdcdba2
3
+ metadata.gz: d86525bb60d51c356a2c75f368d248991a207c7875348a88181a3f7156b6051a
4
+ data.tar.gz: cb88fe16e651b54a671ae95f1ea71b692fa5f9c9348f16ce0f38218c98b7b90a
5
5
  SHA512:
6
- metadata.gz: 8ab4995d175c7dd2821bf547b43c4b2128ee332c5110d59698e419352d325ec94ff761cda257d8bd4612f2f3c3c868c59fcaf947f923c0c1b98ae1d83c88991c
7
- data.tar.gz: 996aef5dece8afdf5306a9b716545793dd16d469f869c0d17eb336fc58ce91bf9154e234f42e5e0aab5c2b56e9025a8a5e2c86edbd48e5a7cb459b790252769e
6
+ metadata.gz: f24def6fc7afdab94cb605e5f9fb721d3b621841ebda9016ba26ab4acabf10dba0ad3b79c278c009fdf153654181a1c18b69385445e19627b91494db048d546c
7
+ data.tar.gz: f64be9703c9c312fb5571108838b199f4d5349ced2dcac12a32936db8a9f847222643ee05cd37b67a7671c8e92124489703df54ff5ef134d8875e8f546f46b9c
@@ -18,13 +18,13 @@ jobs:
18
18
  - uses: ruby/setup-ruby@v1
19
19
  with:
20
20
  ruby-version: head
21
+ - name: Install libfuse
22
+ run: sudo apt install libfuse2
21
23
  - name: Bundle install
22
24
  run: |
23
25
  bundle config set path vendor/bundle
24
26
  bundle install --jobs 3 --retry 3
25
27
  - name: Install Neovim
26
- env:
27
- BUILD: latest
28
28
  run: bundle exec rake ci:download_nvim
29
29
  - name: Generate docs
30
30
  env:
@@ -12,23 +12,23 @@ jobs:
12
12
  fail-fast: false
13
13
  matrix:
14
14
  os: [ubuntu-latest, macos-latest]
15
- ruby: [2.5, 2.6, 2.7, 3.0, head]
15
+ ruby: [2.7, 3.0, 3.1, 3.2, head]
16
16
  runs-on: ${{ matrix.os }}
17
17
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
18
18
  steps:
19
+ - name: Fix up git URLs
20
+ run: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig
19
21
  - uses: actions/checkout@v2
20
22
  with:
21
23
  repository: neovim/neovim-ruby
22
24
  - uses: ruby/setup-ruby@v1
23
25
  with:
24
26
  ruby-version: ${{ matrix.ruby }}
25
- - name: Bundle install
26
- run: |
27
- bundle config set path vendor/bundle
28
- bundle install --jobs 3 --retry 3
27
+ bundler-cache: true
28
+ - name: Install libfuse
29
+ run: sudo apt install libfuse2
30
+ if: matrix.os == 'ubuntu-latest'
29
31
  - name: Install Neovim
30
- env:
31
- BUILD: nightly
32
32
  run: bundle exec rake ci:download_nvim
33
33
  - name: Run tests
34
34
  env:
@@ -38,27 +38,27 @@ jobs:
38
38
  strategy:
39
39
  fail-fast: false
40
40
  matrix:
41
- ruby: [2.5, 2.6, 2.7, 3.0]
41
+ ruby: [2.7, 3.0, 3.1, 3.2]
42
42
  runs-on: windows-latest
43
43
  if: "!contains(github.event.head_commit.message, '[skip ci]')"
44
44
  steps:
45
+ - name: Fix up git URLs
46
+ run: |
47
+ echo '[url "https://github.com/"]' >> ~/.gitconfig
48
+ echo ' insteadOf = "git://github.com/"' >> ~/.gitconfig
45
49
  - uses: actions/checkout@v2
46
50
  with:
47
51
  repository: neovim/neovim-ruby
48
52
  - uses: ruby/setup-ruby@v1
49
53
  with:
50
54
  ruby-version: ${{ matrix.ruby }}
51
- - name: Bundle install
52
- run: |
53
- bundle config set path vendor/bundle
54
- bundle install --jobs 3 --retry 3
55
+ bundler-cache: true
55
56
  - name: Install Neovim
56
57
  uses: crazy-max/ghaction-chocolatey@v1
57
58
  with:
58
- # TODO: Install `--pre` once nightly release is fixed:
59
- # https://github.com/neovim/neovim/issues/13312
60
59
  args: install neovim -fy --ignore-dependencies --ignore-checksums
61
60
  - name: Run tests
62
61
  env:
63
- NVIM_EXECUTABLE: 'C:\tools\neovim\Neovim\bin\nvim'
62
+ VIM_FLAVOR_HOME: 'D:\'
63
+ NVIM_EXECUTABLE: 'C:\tools\neovim\nvim-win64\bin\nvim'
64
64
  run: bundle exec rake spec
data/.gitignore CHANGED
@@ -18,7 +18,7 @@ test/tmp
18
18
  test/version_tmp
19
19
  tmp
20
20
  spec/workspace
21
- spec/acceptance/runtime/flavors
21
+ spec/acceptance/runtime/pack
22
22
  spec/acceptance/runtime/rplugin_manifest.vim
23
23
  vendor/bundle
24
24
  bin
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.9.1
2
+
3
+ - Fix bug where `Buffer#[]` with `0` returned the last line of the buffer
4
+ (https://github.com/neovim/neovim-ruby/issues/97)
5
+
1
6
  # 0.9.0
2
7
 
3
8
  - Add RPC support for `:rubyeval`.
data/Flavorfile.lock ADDED
@@ -0,0 +1 @@
1
+ thinca/vim-themis (737e5444713ba53a9dcfbe3b962239bd0bd9162e at master)
data/README.md CHANGED
@@ -27,10 +27,10 @@ gem install neovim
27
27
 
28
28
  ## Usage
29
29
 
30
- You can control a running `nvim` process by connecting to `$NVIM_LISTEN_ADDRESS`. For example, to connect to `nvim` over a UNIX domain socket, start it up like this:
30
+ Neovim supports the `--listen` option for specifying an address to serve its RPC API. To connect to Neovim over a Unix socket, start it up like this:
31
31
 
32
32
  ```shell
33
- $ NVIM_LISTEN_ADDRESS=/tmp/nvim.sock nvim
33
+ $ nvim --listen /tmp/nvim.sock
34
34
  ```
35
35
 
36
36
  You can then connect to that socket path to get a `Neovim::Client`:
@@ -85,7 +85,7 @@ The Neovim gem also acts as a compatibility layer for Ruby plugins written for `
85
85
  * CI: <https://github.com/neovim/neovim-ruby/actions>
86
86
  * Documentation:
87
87
  * Latest Gem: <https://rubydoc.info/gems/neovim>
88
- * Main: <https://rubydoc.info/github/neovim/neovim-ruby/main/frames>
88
+ * Main: <https://rubydoc.info/github/neovim/neovim-ruby/main>
89
89
 
90
90
  ## Contributing
91
91
 
data/lib/neovim/buffer.rb CHANGED
@@ -4,7 +4,7 @@ require "neovim/line_range"
4
4
  module Neovim
5
5
  # Class representing an +nvim+ buffer.
6
6
  #
7
- # The methods documented here were generated using NVIM v0.5.0
7
+ # The methods documented here were generated using NVIM v0.9.1
8
8
  class Buffer < RemoteObject
9
9
  attr_reader :lines
10
10
 
@@ -54,7 +54,7 @@ module Neovim
54
54
  # @param index [Integer]
55
55
  # @return [String]
56
56
  def [](index)
57
- check_index(index)
57
+ check_index(index, 1)
58
58
  @lines[index - 1]
59
59
  end
60
60
 
@@ -64,7 +64,7 @@ module Neovim
64
64
  # @param str [String]
65
65
  # @return [String]
66
66
  def []=(index, str)
67
- check_index(index)
67
+ check_index(index, 1)
68
68
  @lines[index - 1] = str
69
69
  end
70
70
 
@@ -73,13 +73,16 @@ module Neovim
73
73
  # @param index [Integer]
74
74
  # @return [void]
75
75
  def delete(index)
76
- check_index(index)
76
+ check_index(index, 1)
77
77
  @lines.delete(index - 1)
78
78
  nil
79
79
  end
80
80
 
81
81
  # Append a line after the given line (1-indexed).
82
82
  #
83
+ # Unlike the other methods, `0` is a valid index argument here, and inserts
84
+ # into the first line of the buffer.
85
+ #
83
86
  # To maintain backwards compatibility with +vim+, the cursor is forced back
84
87
  # to its previous position after inserting the line.
85
88
  #
@@ -87,7 +90,7 @@ module Neovim
87
90
  # @param str [String]
88
91
  # @return [String]
89
92
  def append(index, str)
90
- check_index(index)
93
+ check_index(index, 0)
91
94
  window = @session.request(:nvim_get_current_win)
92
95
  cursor = window.cursor
93
96
 
@@ -127,8 +130,8 @@ module Neovim
127
130
 
128
131
  private
129
132
 
130
- def check_index(index)
131
- raise ArgumentError, "Index out of bounds" if index < 0
133
+ def check_index(index, min)
134
+ raise ArgumentError, "Index out of bounds" if index < min
132
135
  end
133
136
 
134
137
  public
@@ -173,6 +176,15 @@ module Neovim
173
176
  @param [Array<String>] replacement
174
177
  @return [void]
175
178
 
179
+ @method get_text(start_row, start_col, end_row, end_col, opts)
180
+ See +:h nvim_buf_get_text()+
181
+ @param [Integer] start_row
182
+ @param [Integer] start_col
183
+ @param [Integer] end_row
184
+ @param [Integer] end_col
185
+ @param [Hash] opts
186
+ @return [Array<String>]
187
+
176
188
  @method get_offset(index)
177
189
  See +:h nvim_buf_get_offset()+
178
190
  @param [Integer] index
@@ -206,11 +218,6 @@ module Neovim
206
218
  @param [String] lhs
207
219
  @return [void]
208
220
 
209
- @method get_commands(opts)
210
- See +:h nvim_buf_get_commands()+
211
- @param [Hash] opts
212
- @return [Hash]
213
-
214
221
  @method set_var(name, value)
215
222
  See +:h nvim_buf_set_var()+
216
223
  @param [String] name
@@ -222,17 +229,6 @@ module Neovim
222
229
  @param [String] name
223
230
  @return [void]
224
231
 
225
- @method get_option(name)
226
- See +:h nvim_buf_get_option()+
227
- @param [String] name
228
- @return [Object]
229
-
230
- @method set_option(name, value)
231
- See +:h nvim_buf_set_option()+
232
- @param [String] name
233
- @param [Object] value
234
- @return [void]
235
-
236
232
  @method get_name
237
233
  See +:h nvim_buf_get_name()+
238
234
  @return [String]
@@ -250,11 +246,65 @@ module Neovim
250
246
  See +:h nvim_buf_is_valid()+
251
247
  @return [Boolean]
252
248
 
249
+ @method del_mark(name)
250
+ See +:h nvim_buf_del_mark()+
251
+ @param [String] name
252
+ @return [Boolean]
253
+
254
+ @method set_mark(name, line, col, opts)
255
+ See +:h nvim_buf_set_mark()+
256
+ @param [String] name
257
+ @param [Integer] line
258
+ @param [Integer] col
259
+ @param [Hash] opts
260
+ @return [Boolean]
261
+
253
262
  @method get_mark(name)
254
263
  See +:h nvim_buf_get_mark()+
255
264
  @param [String] name
256
265
  @return [Array<Integer>]
257
266
 
267
+ @method call(fun)
268
+ See +:h nvim_buf_call()+
269
+ @param [LuaRef] fun
270
+ @return [Object]
271
+
272
+ @method create_user_command(name, command, opts)
273
+ See +:h nvim_buf_create_user_command()+
274
+ @param [String] name
275
+ @param [Object] command
276
+ @param [Hash] opts
277
+ @return [void]
278
+
279
+ @method del_user_command(name)
280
+ See +:h nvim_buf_del_user_command()+
281
+ @param [String] name
282
+ @return [void]
283
+
284
+ @method get_commands(opts)
285
+ See +:h nvim_buf_get_commands()+
286
+ @param [Hash] opts
287
+ @return [Hash]
288
+
289
+ @method get_number
290
+ See +:h nvim_buf_get_number()+
291
+ @return [Integer]
292
+
293
+ @method clear_highlight(ns_id, line_start, line_end)
294
+ See +:h nvim_buf_clear_highlight()+
295
+ @param [Integer] ns_id
296
+ @param [Integer] line_start
297
+ @param [Integer] line_end
298
+ @return [void]
299
+
300
+ @method set_virtual_text(src_id, line, chunks, opts)
301
+ See +:h nvim_buf_set_virtual_text()+
302
+ @param [Integer] src_id
303
+ @param [Integer] line
304
+ @param [Array] chunks
305
+ @param [Hash] opts
306
+ @return [Integer]
307
+
258
308
  @method get_extmark_by_id(ns_id, id, opts)
259
309
  See +:h nvim_buf_get_extmark_by_id()+
260
310
  @param [Integer] ns_id
@@ -300,28 +350,15 @@ module Neovim
300
350
  @param [Integer] line_end
301
351
  @return [void]
302
352
 
303
- @method set_virtual_text(src_id, line, chunks, opts)
304
- See +:h nvim_buf_set_virtual_text()+
305
- @param [Integer] src_id
306
- @param [Integer] line
307
- @param [Array] chunks
308
- @param [Hash] opts
309
- @return [Integer]
310
-
311
- @method call(fun)
312
- See +:h nvim_buf_call()+
313
- @param [LuaRef] fun
353
+ @method get_option(name)
354
+ See +:h nvim_buf_get_option()+
355
+ @param [String] name
314
356
  @return [Object]
315
357
 
316
- @method get_number
317
- See +:h nvim_buf_get_number()+
318
- @return [Integer]
319
-
320
- @method clear_highlight(ns_id, line_start, line_end)
321
- See +:h nvim_buf_clear_highlight()+
322
- @param [Integer] ns_id
323
- @param [Integer] line_start
324
- @param [Integer] line_end
358
+ @method set_option(name, value)
359
+ See +:h nvim_buf_set_option()+
360
+ @param [String] name
361
+ @param [Object] value
325
362
  @return [void]
326
363
 
327
364
  =end
data/lib/neovim/client.rb CHANGED
@@ -9,7 +9,7 @@ module Neovim
9
9
  # +RemoteObject+ subclasses (i.e. +Buffer+, +Window+, or +Tabpage+),
10
10
  # which similarly have dynamically generated interfaces.
11
11
  #
12
- # The methods documented here were generated using NVIM v0.5.0
12
+ # The methods documented here were generated using NVIM v0.9.1
13
13
  #
14
14
  # @see Buffer
15
15
  # @see Window
@@ -117,6 +117,84 @@ module Neovim
117
117
 
118
118
  # The following methods are dynamically generated.
119
119
  =begin
120
+ @method get_autocmds(opts)
121
+ See +:h nvim_get_autocmds()+
122
+ @param [Hash] opts
123
+ @return [Array]
124
+
125
+ @method create_autocmd(event, opts)
126
+ See +:h nvim_create_autocmd()+
127
+ @param [Object] event
128
+ @param [Hash] opts
129
+ @return [Integer]
130
+
131
+ @method del_autocmd(id)
132
+ See +:h nvim_del_autocmd()+
133
+ @param [Integer] id
134
+ @return [void]
135
+
136
+ @method clear_autocmds(opts)
137
+ See +:h nvim_clear_autocmds()+
138
+ @param [Hash] opts
139
+ @return [void]
140
+
141
+ @method create_augroup(name, opts)
142
+ See +:h nvim_create_augroup()+
143
+ @param [String] name
144
+ @param [Hash] opts
145
+ @return [Integer]
146
+
147
+ @method del_augroup_by_id(id)
148
+ See +:h nvim_del_augroup_by_id()+
149
+ @param [Integer] id
150
+ @return [void]
151
+
152
+ @method del_augroup_by_name(name)
153
+ See +:h nvim_del_augroup_by_name()+
154
+ @param [String] name
155
+ @return [void]
156
+
157
+ @method exec_autocmds(event, opts)
158
+ See +:h nvim_exec_autocmds()+
159
+ @param [Object] event
160
+ @param [Hash] opts
161
+ @return [void]
162
+
163
+ @method parse_cmd(str, opts)
164
+ See +:h nvim_parse_cmd()+
165
+ @param [String] str
166
+ @param [Hash] opts
167
+ @return [Hash]
168
+
169
+ @method cmd(cmd, opts)
170
+ See +:h nvim_cmd()+
171
+ @param [Hash] cmd
172
+ @param [Hash] opts
173
+ @return [String]
174
+
175
+ @method create_user_command(name, command, opts)
176
+ See +:h nvim_create_user_command()+
177
+ @param [String] name
178
+ @param [Object] command
179
+ @param [Hash] opts
180
+ @return [void]
181
+
182
+ @method del_user_command(name)
183
+ See +:h nvim_del_user_command()+
184
+ @param [String] name
185
+ @return [void]
186
+
187
+ @method get_commands(opts)
188
+ See +:h nvim_get_commands()+
189
+ @param [Hash] opts
190
+ @return [Hash]
191
+
192
+ @method exec(src, output)
193
+ See +:h nvim_exec()+
194
+ @param [String] src
195
+ @param [Boolean] output
196
+ @return [String]
197
+
120
198
  @method command_output(command)
121
199
  See +:h nvim_command_output()+
122
200
  @param [String] command
@@ -128,6 +206,66 @@ module Neovim
128
206
  @param [Array] args
129
207
  @return [Object]
130
208
 
209
+ @method get_hl_by_id(hl_id, rgb)
210
+ See +:h nvim_get_hl_by_id()+
211
+ @param [Integer] hl_id
212
+ @param [Boolean] rgb
213
+ @return [Hash]
214
+
215
+ @method get_hl_by_name(name, rgb)
216
+ See +:h nvim_get_hl_by_name()+
217
+ @param [String] name
218
+ @param [Boolean] rgb
219
+ @return [Hash]
220
+
221
+ @method get_option_info(name)
222
+ See +:h nvim_get_option_info()+
223
+ @param [String] name
224
+ @return [Hash]
225
+
226
+ @method create_namespace(name)
227
+ See +:h nvim_create_namespace()+
228
+ @param [String] name
229
+ @return [Integer]
230
+
231
+ @method get_namespaces
232
+ See +:h nvim_get_namespaces()+
233
+ @return [Hash]
234
+
235
+ @method set_decoration_provider(ns_id, opts)
236
+ See +:h nvim_set_decoration_provider()+
237
+ @param [Integer] ns_id
238
+ @param [Hash] opts
239
+ @return [void]
240
+
241
+ @method get_option_value(name, opts)
242
+ See +:h nvim_get_option_value()+
243
+ @param [String] name
244
+ @param [Hash] opts
245
+ @return [Object]
246
+
247
+ @method set_option_value(name, value, opts)
248
+ See +:h nvim_set_option_value()+
249
+ @param [String] name
250
+ @param [Object] value
251
+ @param [Hash] opts
252
+ @return [void]
253
+
254
+ @method get_all_options_info
255
+ See +:h nvim_get_all_options_info()+
256
+ @return [Hash]
257
+
258
+ @method get_option_info2(name, opts)
259
+ See +:h nvim_get_option_info2()+
260
+ @param [String] name
261
+ @param [Hash] opts
262
+ @return [Hash]
263
+
264
+ @method get_option(name)
265
+ See +:h nvim_get_option()+
266
+ @param [String] name
267
+ @return [Object]
268
+
131
269
  @method ui_attach(width, height, options)
132
270
  See +:h nvim_ui_attach()+
133
271
  @param [Integer] width
@@ -135,6 +273,11 @@ module Neovim
135
273
  @param [Hash] options
136
274
  @return [void]
137
275
 
276
+ @method ui_set_focus(gained)
277
+ See +:h nvim_ui_set_focus()+
278
+ @param [Boolean] gained
279
+ @return [void]
280
+
138
281
  @method ui_detach
139
282
  See +:h nvim_ui_detach()+
140
283
  @return [void]
@@ -171,34 +314,17 @@ module Neovim
171
314
  @param [Float] col
172
315
  @return [void]
173
316
 
174
- @method exec(src, output)
175
- See +:h nvim_exec()+
176
- @param [String] src
177
- @param [Boolean] output
178
- @return [String]
179
-
180
- @method command(command)
181
- See +:h nvim_command()+
182
- @param [String] command
183
- @return [void]
184
-
185
- @method get_hl_by_name(name, rgb)
186
- See +:h nvim_get_hl_by_name()+
187
- @param [String] name
188
- @param [Boolean] rgb
189
- @return [Hash]
190
-
191
- @method get_hl_by_id(hl_id, rgb)
192
- See +:h nvim_get_hl_by_id()+
193
- @param [Integer] hl_id
194
- @param [Boolean] rgb
195
- @return [Hash]
196
-
197
317
  @method get_hl_id_by_name(name)
198
318
  See +:h nvim_get_hl_id_by_name()+
199
319
  @param [String] name
200
320
  @return [Integer]
201
321
 
322
+ @method get_hl(ns_id, opts)
323
+ See +:h nvim_get_hl()+
324
+ @param [Integer] ns_id
325
+ @param [Hash] opts
326
+ @return [Hash]
327
+
202
328
  @method set_hl(ns_id, name, val)
203
329
  See +:h nvim_set_hl()+
204
330
  @param [Integer] ns_id
@@ -206,11 +332,21 @@ module Neovim
206
332
  @param [Hash] val
207
333
  @return [void]
208
334
 
209
- @method feedkeys(keys, mode, escape_csi)
335
+ @method set_hl_ns(ns_id)
336
+ See +:h nvim_set_hl_ns()+
337
+ @param [Integer] ns_id
338
+ @return [void]
339
+
340
+ @method set_hl_ns_fast(ns_id)
341
+ See +:h nvim_set_hl_ns_fast()+
342
+ @param [Integer] ns_id
343
+ @return [void]
344
+
345
+ @method feedkeys(keys, mode, escape_ks)
210
346
  See +:h nvim_feedkeys()+
211
347
  @param [String] keys
212
348
  @param [String] mode
213
- @param [Boolean] escape_csi
349
+ @param [Boolean] escape_ks
214
350
  @return [void]
215
351
 
216
352
  @method input(keys)
@@ -236,11 +372,6 @@ module Neovim
236
372
  @param [Boolean] special
237
373
  @return [String]
238
374
 
239
- @method eval(expr)
240
- See +:h nvim_eval()+
241
- @param [String] expr
242
- @return [Object]
243
-
244
375
  @method exec_lua(code, args)
245
376
  See +:h nvim_exec_lua()+
246
377
  @param [String] code
@@ -254,19 +385,6 @@ module Neovim
254
385
  @param [Hash] opts
255
386
  @return [Object]
256
387
 
257
- @method call_function(fn, args)
258
- See +:h nvim_call_function()+
259
- @param [String] fn
260
- @param [Array] args
261
- @return [Object]
262
-
263
- @method call_dict_function(dict, fn, args)
264
- See +:h nvim_call_dict_function()+
265
- @param [Object] dict
266
- @param [String] fn
267
- @param [Array] args
268
- @return [Object]
269
-
270
388
  @method strwidth(text)
271
389
  See +:h nvim_strwidth()+
272
390
  @param [String] text
@@ -327,20 +445,6 @@ module Neovim
327
445
  @param [Object] value
328
446
  @return [void]
329
447
 
330
- @method get_option(name)
331
- See +:h nvim_get_option()+
332
- @param [String] name
333
- @return [Object]
334
-
335
- @method get_all_options_info
336
- See +:h nvim_get_all_options_info()+
337
- @return [Hash]
338
-
339
- @method get_option_info(name)
340
- See +:h nvim_get_option_info()+
341
- @param [String] name
342
- @return [Hash]
343
-
344
448
  @method echo(chunks, history, opts)
345
449
  See +:h nvim_echo()+
346
450
  @param [Array] chunks
@@ -407,13 +511,6 @@ module Neovim
407
511
  @param [String] data
408
512
  @return [void]
409
513
 
410
- @method open_win(buffer, enter, config)
411
- See +:h nvim_open_win()+
412
- @param [Buffer] buffer
413
- @param [Boolean] enter
414
- @param [Hash] config
415
- @return [Window]
416
-
417
514
  @method list_tabpages
418
515
  See +:h nvim_list_tabpages()+
419
516
  @return [Array<Tabpage>]
@@ -427,15 +524,6 @@ module Neovim
427
524
  @param [Tabpage] tabpage
428
525
  @return [void]
429
526
 
430
- @method create_namespace(name)
431
- See +:h nvim_create_namespace()+
432
- @param [String] name
433
- @return [Integer]
434
-
435
- @method get_namespaces
436
- See +:h nvim_get_namespaces()+
437
- @return [Hash]
438
-
439
527
  @method paste(data, crlf, phase)
440
528
  See +:h nvim_paste()+
441
529
  @param [String] data
@@ -503,11 +591,6 @@ module Neovim
503
591
  @param [String] lhs
504
592
  @return [void]
505
593
 
506
- @method get_commands(opts)
507
- See +:h nvim_get_commands()+
508
- @param [Hash] opts
509
- @return [Hash]
510
-
511
594
  @method get_api_info
512
595
  See +:h nvim_get_api_info()+
513
596
  @return [Array]
@@ -535,13 +618,6 @@ module Neovim
535
618
  @param [Array] calls
536
619
  @return [Array]
537
620
 
538
- @method parse_expression(expr, flags, highlight)
539
- See +:h nvim_parse_expression()+
540
- @param [String] expr
541
- @param [String] flags
542
- @param [Boolean] highlight
543
- @return [Hash]
544
-
545
621
  @method list_uis
546
622
  See +:h nvim_list_uis()+
547
623
  @return [Array]
@@ -564,12 +640,66 @@ module Neovim
564
640
  @param [Hash] opts
565
641
  @return [void]
566
642
 
567
- @method set_decoration_provider(ns_id, opts)
568
- See +:h nvim_set_decoration_provider()+
569
- @param [Integer] ns_id
643
+ @method del_mark(name)
644
+ See +:h nvim_del_mark()+
645
+ @param [String] name
646
+ @return [Boolean]
647
+
648
+ @method get_mark(name, opts)
649
+ See +:h nvim_get_mark()+
650
+ @param [String] name
651
+ @param [Hash] opts
652
+ @return [Array]
653
+
654
+ @method eval_statusline(str, opts)
655
+ See +:h nvim_eval_statusline()+
656
+ @param [String] str
570
657
  @param [Hash] opts
658
+ @return [Hash]
659
+
660
+ @method exec2(src, opts)
661
+ See +:h nvim_exec2()+
662
+ @param [String] src
663
+ @param [Hash] opts
664
+ @return [Hash]
665
+
666
+ @method command(command)
667
+ See +:h nvim_command()+
668
+ @param [String] command
571
669
  @return [void]
572
670
 
671
+ @method eval(expr)
672
+ See +:h nvim_eval()+
673
+ @param [String] expr
674
+ @return [Object]
675
+
676
+ @method call_function(fn, args)
677
+ See +:h nvim_call_function()+
678
+ @param [String] fn
679
+ @param [Array] args
680
+ @return [Object]
681
+
682
+ @method call_dict_function(dict, fn, args)
683
+ See +:h nvim_call_dict_function()+
684
+ @param [Object] dict
685
+ @param [String] fn
686
+ @param [Array] args
687
+ @return [Object]
688
+
689
+ @method parse_expression(expr, flags, highlight)
690
+ See +:h nvim_parse_expression()+
691
+ @param [String] expr
692
+ @param [String] flags
693
+ @param [Boolean] highlight
694
+ @return [Hash]
695
+
696
+ @method open_win(buffer, enter, config)
697
+ See +:h nvim_open_win()+
698
+ @param [Buffer] buffer
699
+ @param [Boolean] enter
700
+ @param [Hash] config
701
+ @return [Window]
702
+
573
703
  =end
574
704
  end
575
705
  end
@@ -3,7 +3,7 @@ require "neovim/remote_object"
3
3
  module Neovim
4
4
  # Class representing an +nvim+ tabpage.
5
5
  #
6
- # The methods documented here were generated using NVIM v0.5.0
6
+ # The methods documented here were generated using NVIM v0.9.1
7
7
  class Tabpage < RemoteObject
8
8
  # The following methods are dynamically generated.
9
9
  =begin
@@ -1,3 +1,3 @@
1
1
  module Neovim
2
- VERSION = Gem::Version.new("0.9.0")
2
+ VERSION = Gem::Version.new("0.9.1")
3
3
  end
data/lib/neovim/window.rb CHANGED
@@ -3,7 +3,7 @@ require "neovim/remote_object"
3
3
  module Neovim
4
4
  # Class representing an +nvim+ window.
5
5
  #
6
- # The methods documented here were generated using NVIM v0.5.0
6
+ # The methods documented here were generated using NVIM v0.9.1
7
7
  class Window < RemoteObject
8
8
  # Get the buffer displayed in the window
9
9
  #
@@ -64,6 +64,26 @@ module Neovim
64
64
 
65
65
  # The following methods are dynamically generated.
66
66
  =begin
67
+ @method get_option(name)
68
+ See +:h nvim_win_get_option()+
69
+ @param [String] name
70
+ @return [Object]
71
+
72
+ @method set_option(name, value)
73
+ See +:h nvim_win_set_option()+
74
+ @param [String] name
75
+ @param [Object] value
76
+ @return [void]
77
+
78
+ @method set_config(config)
79
+ See +:h nvim_win_set_config()+
80
+ @param [Hash] config
81
+ @return [void]
82
+
83
+ @method get_config
84
+ See +:h nvim_win_get_config()+
85
+ @return [Hash]
86
+
67
87
  @method get_buf
68
88
  See +:h nvim_win_get_buf()+
69
89
  @return [Buffer]
@@ -116,17 +136,6 @@ module Neovim
116
136
  @param [String] name
117
137
  @return [void]
118
138
 
119
- @method get_option(name)
120
- See +:h nvim_win_get_option()+
121
- @param [String] name
122
- @return [Object]
123
-
124
- @method set_option(name, value)
125
- See +:h nvim_win_set_option()+
126
- @param [String] name
127
- @param [Object] value
128
- @return [void]
129
-
130
139
  @method get_position
131
140
  See +:h nvim_win_get_position()+
132
141
  @return [Array<Integer>]
@@ -143,15 +152,6 @@ module Neovim
143
152
  See +:h nvim_win_is_valid()+
144
153
  @return [Boolean]
145
154
 
146
- @method set_config(config)
147
- See +:h nvim_win_set_config()+
148
- @param [Hash] config
149
- @return [void]
150
-
151
- @method get_config
152
- See +:h nvim_win_get_config()+
153
- @return [Hash]
154
-
155
155
  @method hide
156
156
  See +:h nvim_win_hide()+
157
157
  @return [void]
@@ -166,6 +166,11 @@ module Neovim
166
166
  @param [LuaRef] fun
167
167
  @return [Object]
168
168
 
169
+ @method set_hl_ns(ns_id)
170
+ See +:h nvim_win_set_hl_ns()+
171
+ @param [Integer] ns_id
172
+ @return [void]
173
+
169
174
  =end
170
175
  end
171
176
  end
data/lib/neovim.rb CHANGED
@@ -10,11 +10,10 @@ require "neovim/version"
10
10
  # running +nvim+ instance programmatically or define a remote plugin to be
11
11
  # autoloaded by +nvim+.
12
12
  #
13
- # You can connect to a running +nvim+ instance by setting or inspecting the
14
- # +NVIM_LISTEN_ADDRESS+ environment variable and connecting via the appropriate
15
- # +attach_+ method. This is currently supported for both UNIX domain sockets
16
- # and TCP. You can also spawn and connect to an +nvim+ subprocess via
17
- # +Neovim.attach_child(argv)+.
13
+ # You can connect to a running +nvim+ process using the appropriate +attach_+
14
+ # method. This is currently supported for both UNIX domain sockets and TCP. You
15
+ # can also spawn and connect to an +nvim+ subprocess using
16
+ # +Neovim.attach_child+.
18
17
  #
19
18
  # You can define a remote plugin using the +Neovim.plugin+ DSL, which allows
20
19
  # you to register commands, functions, and autocmds. Plugins are autoloaded by
data/neovim.gemspec CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "msgpack", "~> 1.1"
23
23
  spec.add_dependency "multi_json", "~> 1.0"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 2.0"
26
- spec.add_development_dependency "pry"
25
+ spec.add_development_dependency "bundler"
26
+ spec.add_development_dependency "pry", "~> 0.14"
27
27
  spec.add_development_dependency "pry-byebug"
28
28
  spec.add_development_dependency "rake"
29
- spec.add_development_dependency "rspec", "~> 3.0"
30
- spec.add_development_dependency "vim-flavor", "2.2.2"
29
+ spec.add_development_dependency "rspec"
30
+ spec.add_development_dependency "vim-flavor"
31
31
  end
@@ -2,32 +2,19 @@
2
2
 
3
3
  set -eu
4
4
 
5
- : ${RUNNER_OS:?} ${BUILD:?}
6
-
7
- case "$BUILD" in
8
- latest)
9
- URL_PART="latest/download"
10
- ;;
11
- nightly)
12
- URL_PART="download/nightly"
13
- ;;
14
- *)
15
- echo "BUILD must be 'latest' or 'nightly'." >&2
16
- exit 1
17
- ;;
18
- esac
5
+ : ${RUNNER_OS:?}
19
6
 
20
7
  case "$(echo "$RUNNER_OS" | tr "[:upper:]" "[:lower:]")" in
21
8
  macos)
22
9
  wget -nv -P /tmp \
23
- "https://github.com/neovim/neovim/releases/$URL_PART/nvim-macos.tar.gz"
10
+ "https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz"
24
11
  tar -C /tmp -xzf /tmp/nvim-macos.tar.gz
25
- mv /tmp/nvim-osx64 ./_nvim
12
+ mv /tmp/nvim-macos ./_nvim
26
13
  ;;
27
14
  linux)
28
15
  mkdir -p _nvim/bin
29
16
  wget -nv -O _nvim/bin/nvim \
30
- "https://github.com/neovim/neovim/releases/$URL_PART/nvim.appimage"
17
+ "https://github.com/neovim/neovim/releases/download/stable/nvim.appimage"
31
18
  ;;
32
19
  *)
33
20
  echo "Unrecognized \$RUNNER_OS" >&2
@@ -8,7 +8,7 @@ ENV.delete("VIMRUNTIME")
8
8
  root = File.expand_path("..", __dir__)
9
9
  acceptance_root = File.join(root, "spec/acceptance")
10
10
  themis_rtp = File.join(acceptance_root, "runtime")
11
- themis_home = File.join(themis_rtp, "flavors/thinca_vim-themis")
11
+ themis_home = File.join(themis_rtp, "pack/flavors/start/thinca_vim-themis")
12
12
  manifest = File.join(themis_rtp, "rplugin_manifest.vim")
13
13
  vimrc = File.join(themis_rtp, "init.vim")
14
14
  nvim = ENV.fetch("NVIM_EXECUTABLE", "nvim")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neovim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Genco
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-10 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '2.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '2.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '0.14'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry-byebug
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -98,31 +98,31 @@ dependencies:
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '3.0'
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '3.0'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vim-flavor
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 2.2.2
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 2.2.2
125
- description:
124
+ version: '0'
125
+ description:
126
126
  email:
127
127
  - alexgenco@gmail.com
128
128
  executables:
@@ -135,11 +135,12 @@ files:
135
135
  - ".gitignore"
136
136
  - CHANGELOG.md
137
137
  - CODE_OF_CONDUCT.md
138
+ - Flavorfile
139
+ - Flavorfile.lock
138
140
  - Gemfile
139
141
  - LICENSE.txt
140
142
  - README.md
141
143
  - Rakefile
142
- - VimFlavor
143
144
  - exe/neovim-ruby-host
144
145
  - lib/neovim.rb
145
146
  - lib/neovim/api.rb
@@ -228,7 +229,7 @@ homepage: https://github.com/neovim/neovim-ruby
228
229
  licenses:
229
230
  - MIT
230
231
  metadata: {}
231
- post_install_message:
232
+ post_install_message:
232
233
  rdoc_options: []
233
234
  require_paths:
234
235
  - lib
@@ -243,8 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  - !ruby/object:Gem::Version
244
245
  version: '0'
245
246
  requirements: []
246
- rubygems_version: 3.2.2
247
- signing_key:
247
+ rubygems_version: 3.3.7
248
+ signing_key:
248
249
  specification_version: 4
249
250
  summary: A Ruby client for Neovim
250
251
  test_files:
File without changes