Documentation
¶
Index ¶
- type Model
- func (m *Model) Close() error
- func (m Model) CursorPosition() (int, int)
- func (m Model) FormatMode() string
- func (m Model) Init() tea.Cmd
- func (m Model) Mode() string
- func (m *Model) OpenFile(filepath string)
- func (m *Model) Save() error
- func (m *Model) SetFocused(focused bool)
- func (m *Model) SetSize(width, height int) tea.Cmd
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubble Tea model for the Neovim component. This is a reusable component that can be embedded in any TUI application.
func (Model) CursorPosition ¶
CursorPosition returns the current cursor row and column.
func (Model) FormatMode ¶
FormatMode returns a human-readable representation of the current mode.
func (*Model) SetFocused ¶
SetFocused sets whether this component has focus (for cursor rendering).
type Options ¶
type Options struct {
Width int // Initial width of the Neovim grid
Height int // Initial height of the Neovim grid
FileToOpen string // Optional path to a file to open on startup
UseConfig bool // If true, loads the user's default Neovim config
}
Options holds configuration for creating a new Neovim component.
Click to show internal directories.
Click to hide internal directories.