CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 63
Experimental
Tip
Type definitions are available in definitions/experimental.lua.
Options that don't belong in other groups or needs to be tested are added here,
---@type markview.config.experimental
experimental = {
check_rtp = true,
check_rtp_message = true,
date_formats = {
"^%d%d%d%d%-%d%d%-%d%d$", --- YYYY-MM-DD
"^%d%d%-%d%d%-%d%d%d%d$", --- DD-MM-YYYY, MM-DD-YYYY
"^%d%d%-%d%d%-%d%d$", --- DD-MM-YY, MM-DD-YY, YY-MM-DD
"^%d%d%d%d%/%d%d%/%d%d$", --- YYYY/MM/DD
"^%d%d%/%d%d%/%d%d%d%d$", --- DD/MM/YYYY, MM/DD/YYYY
"^%d%d%d%d%.%d%d%.%d%d$", --- YYYY.MM.DD
"^%d%d%.%d%d%.%d%d%d%d$", --- DD.MM.YYYY, MM.DD.YYYY
"^%d%d %a+ %d%d%d%d$", --- DD Month YYYY
"^%a+ %d%d %d%d%d%d$", --- Month DD, YYYY
"^%d%d%d%d %a+ %d%d$", --- YYYY Month DD
"^%a+%, %a+ %d%d%, %d%d%d%d$", --- Day, Month DD, YYYY
},
date_time_formats = {
"^%a%a%a %a%a%a %d%d %d%d%:%d%d%:%d%d ... %d%d%d%d$", --- UNIX date time
"^%d%d%d%d%-%d%d%-%d%dT%d%d%:%d%d%:%d%dZ$", --- ISO 8601
},
prefer_nvim = false,
file_open_command = "tabnew",
list_empty_line_tolerance = 3,
read_chunk_size = 1024,
linewise_ignore_org_indent = false,
}
- type:
boolean
default:true
Checks the runtimepath
to see if nvim-treesitter
is getting loaded before markview.nvim
. If it's being loaded markview.nvim
will be added before nvim-treesitter
and an error message will be shown.
Important
This assumes the directory/folder name matches the plugin name!
- type:
boolean
default:true
Whether to show the error message when nvim-treesitter
gets loaded before markview.nvim
.
- type:
string[]
default
Attributes,
-
YAML
preview.
A list of lua patterns
to detect date strings in YAML.
- type:
string[]
default
Attributes,
-
YAML
preview.
A list of lua patterns
to detect date & time strings in YAML.
- type:
boolean
default:false
Attributes,
-
gx
, see map_gx.
Whether to prefer Neovim
for opening text files.
- type:
boolean
default:tabnew
Attributes,
-
gx
, see map_gx.
Command used for opening text files in Neovim(it will used as <command> + file_name
.
- type:
integer
default:3
Attributes,
-
markdown
preview, see list_items.
Maximum number of repeating empty lines a list item can have inside it.
Note
The markdown parser will consider any number of lines(before another node) part of the list. This is meant to prevent indentation issues caused by this.
- type:
integer
default:1024
Attributes,
-
gx
, see map_gx.
Number of bytes
to read from a link's file to check if it's a text file.
Note
This has no effect if prefer_nvim is set to false
.
- type:
boolean
default:false
Attributes,
-
org_indent
, see org_indent.
Prevents indentations added by org_indent
from being removed when using linewise_hybrid_mode
.