Class Neovim::Current
In: lib/neovim/current.rb
Parent: Object

Support for +Client#current+ chaining.

@see Client#current

Methods

buffer   buffer=   line   line=   new   range=   tabpage   tabpage=   window   window=  

Public Class methods

Public Instance methods

Get the active buffer.

@return [Buffer]

Set the active buffer.

@param buffer [Buffer, Integer] The target buffer or index. @return [Buffer, Integer]

Get the line under the cursor.

@return [String]

Set the line under the cursor.

@param line [String] The target line contents. @return [String]

Set the current line range of the current buffer.

@param range [Range] The target range

Get the active tabpage.

@return [Tabpage]

Set the active tabpage.

@param tabpage [Tabpage, Integer] The target tabpage or index. @return [Tabpage, Integer]

Get the active window.

@return [Window]

Set the active window.

@param window [Window, Integer] The target window or index. @return [Window, Integer]

[Validate]