Sha256: bb12ea74aad6f22a424681096642adefb14a0e1659b63de32f1754be26c06132

Contents?: true

Size: 288 Bytes

Versions: 6

Compression:

Stored size: 288 Bytes

Contents

require "neovim/ruby_provider/vim"

module Neovim
  class Window
    def self.current
      ::Vim.get_current_win
    end

    def self.count
      ::Vim.get_current_tabpage.list_wins.size
    end

    def self.[](index)
      ::Vim.get_current_tabpage.list_wins[index]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
neovim-0.7.0 lib/neovim/ruby_provider/window_ext.rb
neovim-0.6.2 lib/neovim/ruby_provider/window_ext.rb
neovim-0.6.1 lib/neovim/ruby_provider/window_ext.rb
neovim-0.6.0 lib/neovim/ruby_provider/window_ext.rb
neovim-0.5.1 lib/neovim/ruby_provider/window_ext.rb
neovim-0.5.0 lib/neovim/ruby_provider/window_ext.rb