Compare commits
No commits in common. "f61c716c27b1327c3846aa688673e32263d897c2" and "7f07f544c95e8ed97b295d488b786c6149175aac" have entirely different histories.
f61c716c27
...
7f07f544c9
2 changed files with 1 additions and 11 deletions
|
|
@ -116,7 +116,7 @@ pub const make = .{};
|
|||
|
||||
pub const markdown = .{
|
||||
.language_server = .{ "marksman", "server" },
|
||||
.formatter = .{ "prettier", "--parser", "markdown", "--prose-wrap", "always", "--print-width", "{{reflow_width}}" },
|
||||
.formatter = .{ "prettier", "--parser", "markdown" },
|
||||
};
|
||||
|
||||
pub const @"markdown-inline" = .{};
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
/// {{selections*}} - All current selections expanded to multiple quoted arguments
|
||||
/// {{indent_mode}} - The current indent mode ("tabs" or "spaces")
|
||||
/// {{indent_size}} - The current indent size (in columns)
|
||||
/// {{reflow_width}} - The current reflow width (in columns)
|
||||
/// {{blame_commit}} - The blame commit ID at the line number of the primary cursor
|
||||
pub fn expand(allocator: Allocator, arg: []const u8) Error![]const u8 {
|
||||
var result: std.Io.Writer.Allocating = .init(allocator);
|
||||
|
|
@ -163,15 +162,6 @@ const functions = struct {
|
|||
return stream.toOwnedSlice();
|
||||
}
|
||||
|
||||
/// {{reflow_width}} - The current reflow width (in columns)
|
||||
pub fn reflow_width(allocator: Allocator) Error![]const u8 {
|
||||
const mv = tui.mainview() orelse return &.{};
|
||||
const ed = mv.get_active_editor() orelse return &.{};
|
||||
var stream: std.Io.Writer.Allocating = .init(allocator);
|
||||
try stream.writer.print("{d}", .{ed.reflow_width orelse tui.config().reflow_width});
|
||||
return stream.toOwnedSlice();
|
||||
}
|
||||
|
||||
/// {{blame_commit}} - The blame commit ID at the line number of the primary cursor
|
||||
pub fn blame_commit(allocator: Allocator) Error![]const u8 {
|
||||
const mv = tui.mainview() orelse return &.{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue