Documentation
¶
Index ¶
- type CursorPos
- type CursorState
- type Editor
- func (e *Editor) Draw(screen tcell.Screen)
- func (e *Editor) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (e *Editor) NewLspClient() *LspClient
- func (e *Editor) SetApplication(app *tview.Application)
- func (e *Editor) SetHighlighter(highlighter highlighter.Highlighter)
- func (e *Editor) SetLanguageServer(ctx context.Context, server protocol.Server)
- func (e *Editor) SetURI(uri uri.URI)
- func (e *Editor) SetWorkspace(uri uri.URI)
- type LanguageProtocol
- type LspClient
- func (c *LspClient) ApplyEdit(ctx context.Context, params *protocol.ApplyWorkspaceEditParams) (result bool, err error)
- func (c *LspClient) Configuration(ctx context.Context, params *protocol.ConfigurationParams) (result []interface{}, err error)
- func (c *LspClient) LogMessage(ctx context.Context, params *protocol.LogMessageParams) (err error)
- func (c *LspClient) Progress(ctx context.Context, params *protocol.ProgressParams) (err error)
- func (c *LspClient) PublishDiagnostics(ctx context.Context, params *protocol.PublishDiagnosticsParams) (err error)
- func (c *LspClient) RegisterCapability(ctx context.Context, params *protocol.RegistrationParams) (err error)
- func (c *LspClient) ShowMessage(ctx context.Context, params *protocol.ShowMessageParams) (err error)
- func (c *LspClient) ShowMessageRequest(ctx context.Context, params *protocol.ShowMessageRequestParams) (result *protocol.MessageActionItem, err error)
- func (c *LspClient) Telemetry(ctx context.Context, params interface{}) (err error)
- func (c *LspClient) UnregisterCapability(ctx context.Context, params *protocol.UnregistrationParams) (err error)
- func (c *LspClient) WorkDoneProgressCreate(ctx context.Context, params *protocol.WorkDoneProgressCreateParams) (err error)
- func (c *LspClient) WorkspaceFolders(ctx context.Context) (result []protocol.WorkspaceFolder, err error)
- type RenderState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorState ¶
type CursorState struct {
// contains filtered or unexported fields
}
type Editor ¶
type Editor struct { *tview.Box Text rope.RopeNode LineIndexes map[int]struct { Start int End int } CurrentLine int ScrollX int CurrentDiagnostic chan struct { Diagnostics int Diagnostic *protocol.Diagnostic } PreviousMaxLine int // contains filtered or unexported fields }
func NewEditor ¶
func NewEditor(theme theme.EditorTheme) *Editor
func (*Editor) InputHandler ¶
func (*Editor) NewLspClient ¶
func (*Editor) SetApplication ¶
func (e *Editor) SetApplication(app *tview.Application)
func (*Editor) SetHighlighter ¶
func (e *Editor) SetHighlighter(highlighter highlighter.Highlighter)
func (*Editor) SetLanguageServer ¶
func (*Editor) SetWorkspace ¶
type LanguageProtocol ¶
type LspClient ¶
type LspClient struct { DiagnosticsCount int // contains filtered or unexported fields }
func (*LspClient) Configuration ¶
func (*LspClient) LogMessage ¶
func (*LspClient) PublishDiagnostics ¶
func (*LspClient) RegisterCapability ¶
func (*LspClient) ShowMessage ¶
func (*LspClient) ShowMessageRequest ¶
func (c *LspClient) ShowMessageRequest(ctx context.Context, params *protocol.ShowMessageRequestParams) (result *protocol.MessageActionItem, err error)
func (*LspClient) UnregisterCapability ¶
func (*LspClient) WorkDoneProgressCreate ¶
func (*LspClient) WorkspaceFolders ¶
type RenderState ¶
type RenderState struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.