Skip to main content

Crate duat_core

Crate duat_core 

Source
Expand description

The core of Duat, for use by Duat’s built-in plugins.

This crate isn’t really meant for public use, since it is used only by a select few plugins. Configuration crates and plugins should make use of the duat crate.

One thing to note about this “builti-in plugins” thing though, is that the api of duat is a superset of duat-core’s api, the only reason why this distinction exists is so I can include some other plugins in duat’s api, like duat-base, duat-treesitter, and duat-lsp.

Modules§

buffer
The primary Widget of Duat, used to display buffers.
clipboard
Clipboard interaction for Duat.
cmd
Creation and execution of commands.
context
Access the state of Duat.
data
Duat’s way of sharing and updating state
form
Utilities for stylizing the text of Duat
hook
Utilities for hooks in Duat.
mode
Modes that handle user input
notify
File watching utility for Duat.
opts
General printing options for printing Buffers
process
Utilities for spawning processes that should outlive the config.
storage
Utilities for storing items inbetween reloads.
text
The primary data structure in Duat.
ui
Ui structs and functions
utils
General utility functions for Duat.

Macros§

debug
Logs an debug information to Duat
error
Logs an error to Duat
info
Logs an info to Duat
log_to_file
Log something to a log file, when things are panicking in a way that exits Duat.
try_or_log_err
Tries to evaluate a block that returns Result<T, Text>
txt
The standard Text construction macro
warn
Logs an warning to Duat

Structs§

Plugins
A struct for Plugins to declare dependencies on other Plugins.
Ranges
A list of non intersecting exclusive Range<usize>s

Traits§

Plugin
A plugin for Duat.