2024-03-28 14:16:06 +01:00
|
|
|
{
|
|
|
|
empty = {
|
|
|
|
plugins = {
|
|
|
|
treesitter.enable = true;
|
|
|
|
headlines.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
plugins = {
|
|
|
|
treesitter.enable = true;
|
|
|
|
headlines = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
markdown = {
|
|
|
|
query.__raw = ''
|
|
|
|
vim.treesitter.query.parse(
|
|
|
|
"markdown",
|
|
|
|
[[
|
|
|
|
(atx_heading [
|
|
|
|
(atx_h1_marker)
|
|
|
|
(atx_h2_marker)
|
|
|
|
(atx_h3_marker)
|
|
|
|
(atx_h4_marker)
|
|
|
|
(atx_h5_marker)
|
|
|
|
(atx_h6_marker)
|
|
|
|
] @headline)
|
|
|
|
|
|
|
|
(thematic_break) @dash
|
|
|
|
|
|
|
|
(fenced_code_block) @codeblock
|
|
|
|
|
|
|
|
(block_quote_marker) @quote
|
|
|
|
(block_quote (paragraph (inline (block_continuation) @quote)))
|
|
|
|
(block_quote (paragraph (block_continuation) @quote))
|
|
|
|
(block_quote (block_continuation) @quote)
|
|
|
|
]]
|
|
|
|
)
|
|
|
|
'';
|
2024-05-05 19:39:35 +02:00
|
|
|
headline_highlights = [ "Headline" ];
|
2024-03-28 14:16:06 +01:00
|
|
|
bullet_highlights = [
|
|
|
|
"@text.title.1.marker.markdown"
|
|
|
|
"@text.title.2.marker.markdown"
|
|
|
|
"@text.title.3.marker.markdown"
|
|
|
|
"@text.title.4.marker.markdown"
|
|
|
|
"@text.title.5.marker.markdown"
|
|
|
|
"@text.title.6.marker.markdown"
|
|
|
|
];
|
2024-05-05 19:39:35 +02:00
|
|
|
bullets = [
|
|
|
|
"◉"
|
|
|
|
"○"
|
|
|
|
"✸"
|
|
|
|
"✿"
|
|
|
|
];
|
2024-03-28 14:16:06 +01:00
|
|
|
codeblock_highlight = "CodeBlock";
|
|
|
|
dash_highlight = "Dash";
|
|
|
|
dash_string = "-";
|
|
|
|
quote_highlight = "Quote";
|
|
|
|
quote_string = "┃";
|
|
|
|
fat_headlines = true;
|
|
|
|
fat_headline_upper_string = "▃";
|
|
|
|
fat_headline_lower_string = "🬂";
|
|
|
|
};
|
|
|
|
rmd = {
|
|
|
|
query.__raw = ''
|
|
|
|
vim.treesitter.query.parse(
|
|
|
|
"markdown",
|
|
|
|
[[
|
|
|
|
(atx_heading [
|
|
|
|
(atx_h1_marker)
|
|
|
|
(atx_h2_marker)
|
|
|
|
(atx_h3_marker)
|
|
|
|
(atx_h4_marker)
|
|
|
|
(atx_h5_marker)
|
|
|
|
(atx_h6_marker)
|
|
|
|
] @headline)
|
|
|
|
|
|
|
|
(thematic_break) @dash
|
|
|
|
|
|
|
|
(fenced_code_block) @codeblock
|
|
|
|
|
|
|
|
(block_quote_marker) @quote
|
|
|
|
(block_quote (paragraph (inline (block_continuation) @quote)))
|
|
|
|
(block_quote (paragraph (block_continuation) @quote))
|
|
|
|
(block_quote (block_continuation) @quote)
|
|
|
|
]]
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
treesitter_language = "markdown";
|
2024-05-05 19:39:35 +02:00
|
|
|
headline_highlights = [ "Headline" ];
|
2024-03-28 14:16:06 +01:00
|
|
|
bullet_highlights = [
|
|
|
|
"@text.title.1.marker.markdown"
|
|
|
|
"@text.title.2.marker.markdown"
|
|
|
|
"@text.title.3.marker.markdown"
|
|
|
|
"@text.title.4.marker.markdown"
|
|
|
|
"@text.title.5.marker.markdown"
|
|
|
|
"@text.title.6.marker.markdown"
|
|
|
|
];
|
2024-05-05 19:39:35 +02:00
|
|
|
bullets = [
|
|
|
|
"◉"
|
|
|
|
"○"
|
|
|
|
"✸"
|
|
|
|
"✿"
|
|
|
|
];
|
2024-03-28 14:16:06 +01:00
|
|
|
codeblock_highlight = "CodeBlock";
|
|
|
|
dash_highlight = "Dash";
|
|
|
|
dash_string = "-";
|
|
|
|
quote_highlight = "Quote";
|
|
|
|
quote_string = "┃";
|
|
|
|
fat_headlines = true;
|
|
|
|
fat_headline_upper_string = "▃";
|
|
|
|
fat_headline_lower_string = "🬂";
|
|
|
|
};
|
|
|
|
norg = {
|
|
|
|
query = ''
|
|
|
|
vim.treesitter.query.parse(
|
|
|
|
"norg",
|
|
|
|
[[
|
|
|
|
[
|
|
|
|
(heading1_prefix)
|
|
|
|
(heading2_prefix)
|
|
|
|
(heading3_prefix)
|
|
|
|
(heading4_prefix)
|
|
|
|
(heading5_prefix)
|
|
|
|
(heading6_prefix)
|
|
|
|
] @headline
|
|
|
|
|
|
|
|
(weak_paragraph_delimiter) @dash
|
|
|
|
(strong_paragraph_delimiter) @doubledash
|
|
|
|
|
|
|
|
([(ranged_tag
|
|
|
|
name: (tag_name) @_name
|
|
|
|
(#eq? @_name "code")
|
|
|
|
)
|
|
|
|
(ranged_verbatim_tag
|
|
|
|
name: (tag_name) @_name
|
|
|
|
(#eq? @_name "code")
|
|
|
|
)] @codeblock (#offset! @codeblock 0 0 1 0))
|
|
|
|
|
|
|
|
(quote1_prefix) @quote
|
|
|
|
]]
|
|
|
|
)
|
|
|
|
'';
|
2024-05-05 19:39:35 +02:00
|
|
|
headline_highlights = [ "Headline" ];
|
2024-03-28 14:16:06 +01:00
|
|
|
bullet_highlights = [
|
|
|
|
"@neorg.headings.1.prefix"
|
|
|
|
"@neorg.headings.2.prefix"
|
|
|
|
"@neorg.headings.3.prefix"
|
|
|
|
"@neorg.headings.4.prefix"
|
|
|
|
"@neorg.headings.5.prefix"
|
|
|
|
"@neorg.headings.6.prefix"
|
|
|
|
];
|
2024-05-05 19:39:35 +02:00
|
|
|
bullets = [
|
|
|
|
"◉"
|
|
|
|
"○"
|
|
|
|
"✸"
|
|
|
|
"✿"
|
|
|
|
];
|
2024-03-28 14:16:06 +01:00
|
|
|
codeblock_highlight = "CodeBlock";
|
|
|
|
dash_highlight = "Dash";
|
|
|
|
dash_string = "-";
|
|
|
|
doubledash_highlight = "DoubleDash";
|
|
|
|
doubledash_string = "=";
|
|
|
|
quote_highlight = "Quote";
|
|
|
|
quote_string = "┃";
|
|
|
|
fat_headlines = true;
|
|
|
|
fat_headline_upper_string = "▃";
|
|
|
|
fat_headline_lower_string = "🬂";
|
|
|
|
};
|
2025-03-15 15:34:27 +01:00
|
|
|
# Fails with:
|
|
|
|
# no parser for 'org' language, see :help treesitter-parsers
|
|
|
|
# TODO: re-enable when possible
|
|
|
|
# org = {
|
|
|
|
# query.__raw = ''
|
|
|
|
# vim.treesitter.query.parse(
|
|
|
|
# "org",
|
|
|
|
# [[
|
|
|
|
# (headline (stars) @headline)
|
2024-03-28 14:16:06 +01:00
|
|
|
|
2025-03-15 15:34:27 +01:00
|
|
|
# (
|
|
|
|
# (expr) @dash
|
|
|
|
# (#match? @dash "^-----+$")
|
|
|
|
# )
|
2024-03-28 14:16:06 +01:00
|
|
|
|
2025-03-15 15:34:27 +01:00
|
|
|
# (block
|
|
|
|
# name: (expr) @_name
|
|
|
|
# (#match? @_name "(SRC|src)")
|
|
|
|
# ) @codeblock
|
2024-03-28 14:16:06 +01:00
|
|
|
|
2025-03-15 15:34:27 +01:00
|
|
|
# (paragraph . (expr) @quote
|
|
|
|
# (#eq? @quote ">")
|
|
|
|
# )
|
|
|
|
# ]]
|
|
|
|
# )
|
|
|
|
# '';
|
|
|
|
# headline_highlights = [ "Headline" ];
|
|
|
|
# bullet_highlights = [
|
|
|
|
# "@org.headline.level1"
|
|
|
|
# "@org.headline.level2"
|
|
|
|
# "@org.headline.level3"
|
|
|
|
# "@org.headline.level4"
|
|
|
|
# "@org.headline.level5"
|
|
|
|
# "@org.headline.level6"
|
|
|
|
# "@org.headline.level7"
|
|
|
|
# "@org.headline.level8"
|
|
|
|
# ];
|
|
|
|
# bullets = [
|
|
|
|
# "◉"
|
|
|
|
# "○"
|
|
|
|
# "✸"
|
|
|
|
# "✿"
|
|
|
|
# ];
|
|
|
|
# codeblock_highlight = "CodeBlock";
|
|
|
|
# dash_highlight = "Dash";
|
|
|
|
# dash_string = "-";
|
|
|
|
# quote_highlight = "Quote";
|
|
|
|
# quote_string = "┃";
|
|
|
|
# fat_headlines = true;
|
|
|
|
# fat_headline_upper_string = "▃";
|
|
|
|
# fat_headline_lower_string = "🬂";
|
|
|
|
# };
|
2024-03-28 14:16:06 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|