mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
treewide: fix incorrect string escapes
Done with help of lix parsing for warnings.
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
number = true;
|
||||
shiftwidth = 2;
|
||||
tabstop = 2;
|
||||
guifont = "FiraCode\ Nerd\ Font\ Mono:h14";
|
||||
guifont = "FiraCode Nerd Font Mono:h14";
|
||||
};
|
||||
|
||||
plugins = {
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = builtins.match ".*vim\.filetype\..*" config.content == null;
|
||||
assertion = builtins.match ".*vim\\.filetype\\..*" config.content == null;
|
||||
message = "No vim.filetype definitions should be present in init.lua by default.";
|
||||
}
|
||||
{
|
||||
assertion = builtins.match ".*vim\.filetype\..*" config.files.test.content == null;
|
||||
assertion = builtins.match ".*vim\\.filetype\\..*" config.files.test.content == null;
|
||||
message = "No vim.filetype definitions should be present in files submodules by default.";
|
||||
}
|
||||
];
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
view_mode = "list";
|
||||
indent_markers = true;
|
||||
icons = {
|
||||
folder_closed = "\u{e5ff}";
|
||||
folder_open = "\u{e5fe}";
|
||||
folder_closed = "\\u{e5ff}";
|
||||
folder_open = "\\u{e5fe}";
|
||||
};
|
||||
file_filter = {
|
||||
ignore = [ ];
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
delve = {
|
||||
path = "dlv";
|
||||
initialize_timeout_sec = 20;
|
||||
port = "$\{port}";
|
||||
port = "\${port}";
|
||||
args.__empty = { };
|
||||
build_flags = "-tags=unit";
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
type = "python";
|
||||
request = "launch";
|
||||
name = "My custom launch configuration";
|
||||
program = "$\{file}";
|
||||
program = "\${file}";
|
||||
# ... more options; see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings
|
||||
}
|
||||
];
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
type = "python";
|
||||
request = "launch";
|
||||
name = "Launch file";
|
||||
program = "$\{file}";
|
||||
program = "\${file}";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -658,7 +658,7 @@
|
||||
};
|
||||
treesitter = {
|
||||
max_depth = 16;
|
||||
name_regex = "[=[[#~!@\*&.]*[[:keyword:]]\+!\?\(\(\(->\)\+\|-\+\|\.\+\|:\+\|\s\+\)\?[#~!@\*&.]*[[:keyword:]]\+!\?\)*]=]";
|
||||
name_regex = "[=[[#~!@\\*&.]*[[:keyword:]]\\+!\\?\\(\\(\\(->\\)\\+\\|-\\+\\|\\.\\+\\|:\\+\\|\\s\\+\\)\\?[#~!@\\*&.]*[[:keyword:]]\\+!\\?\\)*]=]";
|
||||
valid_types = [
|
||||
"array"
|
||||
"boolean"
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
"gitcommit"
|
||||
"TelescopePrompt"
|
||||
"TelescopeResults"
|
||||
"\'\'"
|
||||
"''"
|
||||
];
|
||||
buftypes = [
|
||||
"terminal"
|
||||
|
||||
@@ -84,11 +84,11 @@
|
||||
"R" = "REPLACE";
|
||||
"v" = "VISUAL";
|
||||
"V" = "V-LINE";
|
||||
"\<C-v>" = "V-BLOCK";
|
||||
"<C-v>" = "V-BLOCK";
|
||||
"c" = "COMMAND";
|
||||
"s" = "SELECT";
|
||||
"S" = "S-LINE";
|
||||
"\<C-s>" = "S-BLOCK";
|
||||
"<C-s>" = "S-BLOCK";
|
||||
"t" = "TERMINAL";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
markdown_css = "/Users/username/markdown.css";
|
||||
highlight_css.__raw = "vim.fn.expand('~/highlight.css')";
|
||||
port = "8080";
|
||||
page_title = "「\$\{name}」";
|
||||
page_title = "「\${name}」";
|
||||
images_path = "";
|
||||
filetypes = [ "markdown" ];
|
||||
theme = "dark";
|
||||
|
||||
@@ -30,22 +30,22 @@
|
||||
'';
|
||||
git_services = {
|
||||
"github.com" = {
|
||||
pull_request = "https://github.com/$\{owner}/$\{repository}/compare/$\{branch_name}?expand=1";
|
||||
commit = "https://github.com/$\{owner}/$\{repository}/commit/$\{oid}";
|
||||
tree = "https://$\{host}/$\{owner}/$\{repository}/tree/$\{branch_name}";
|
||||
pull_request = "https://github.com/\${owner}/\${repository}/compare/\${branch_name}?expand=1";
|
||||
commit = "https://github.com/\${owner}/\${repository}/commit/\${oid}";
|
||||
tree = "https://\${host}/\${owner}/\${repository}/tree/\${branch_name}";
|
||||
};
|
||||
"bitbucket.org" = {
|
||||
pull_request = "https://bitbucket.org/\${owner}/$\{repository}/pull-requests/new?source=$\{branch_name}&t=1";
|
||||
commit = "https://bitbucket.org/$\{owner}/$\{repository}/commits/$\{oid}";
|
||||
tree = "https://bitbucket.org/$\{owner}/$\{repository}/branch/$\{branch_name}";
|
||||
pull_request = "https://bitbucket.org/\${owner}/\${repository}/pull-requests/new?source=\${branch_name}&t=1";
|
||||
commit = "https://bitbucket.org/\${owner}/\${repository}/commits/\${oid}";
|
||||
tree = "https://bitbucket.org/\${owner}/\${repository}/branch/\${branch_name}";
|
||||
};
|
||||
"gitlab.com" = {
|
||||
pull_request = "https://gitlab.com/$\{owner}/$\{repository}/merge_requests/new?merge_request[source_branch]=$\{branch_name}";
|
||||
commit = "https://gitlab.com/$\{owner}/$\{repository}/-/commit/$\{oid}";
|
||||
tree = "https://gitlab.com/$\{owner}/$\{repository}/-/tree/$\{branch_name}?ref_type=heads";
|
||||
pull_request = "https://gitlab.com/\${owner}/\${repository}/merge_requests/new?merge_request[source_branch]=\${branch_name}";
|
||||
commit = "https://gitlab.com/\${owner}/\${repository}/-/commit/\${oid}";
|
||||
tree = "https://gitlab.com/\${owner}/\${repository}/-/tree/\${branch_name}?ref_type=heads";
|
||||
};
|
||||
"azure.com" = {
|
||||
pull_request = "https://dev.azure.com/$\{owner}/_git/$\{repository}/pullrequestcreate?sourceRef=$\{branch_name}&targetRef=$\{target}";
|
||||
pull_request = "https://dev.azure.com/\${owner}/_git/\${repository}/pullrequestcreate?sourceRef=\${branch_name}&targetRef=\${target}";
|
||||
commit = "";
|
||||
tree = "";
|
||||
};
|
||||
|
||||
@@ -38,11 +38,11 @@
|
||||
summary_view = {
|
||||
header_length = 80;
|
||||
shell_palette = {
|
||||
passed = "\27[32m";
|
||||
skipped = "\27[33m";
|
||||
failed = "\27[31m";
|
||||
stop = "\27[0m";
|
||||
bold = "\27[1m";
|
||||
passed = "\\27[32m";
|
||||
skipped = "\\27[33m";
|
||||
failed = "\\27[31m";
|
||||
stop = "\\27[0m";
|
||||
bold = "\\27[1m";
|
||||
};
|
||||
};
|
||||
extra_args.__empty = { };
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
strip_wrapping_quote_characters = [
|
||||
"'"
|
||||
"\""
|
||||
"\`"
|
||||
"`"
|
||||
];
|
||||
handle_leading_whitespace = false;
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
debug.enable = true;
|
||||
cite_formats = {
|
||||
tex = {
|
||||
start_str = "[[\cite{]]";
|
||||
start_str = "[[\\cite{]]";
|
||||
end_str = "}";
|
||||
separator_str = ", ";
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\v\{\ze[^-]/ end=/}/ fold"
|
||||
"start=/\\v\\{\\ze[^-]/ end=/}/ fold"
|
||||
];
|
||||
};
|
||||
tex = {
|
||||
@@ -101,7 +101,7 @@
|
||||
haskell = {
|
||||
parentheses = [
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\v\{\ze[^-]/ end=/}/ fold"
|
||||
"start=/\\v\\{\\ze[^-]/ end=/}/ fold"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
globals."sandwich#magicchar#f#patterns" = [
|
||||
{
|
||||
header.__raw = "[[\<\%(\h\k*\.\)*\h\k*]]";
|
||||
header.__raw = ''[[\<\%(\h\k*\.\)*\h\k*]]'';
|
||||
bra = "(";
|
||||
ket = ")";
|
||||
footer = "";
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
change_to_vcs_root = false;
|
||||
change_cmd = "lcd";
|
||||
skiplist = [
|
||||
"\.vimgolf"
|
||||
"\\.vimgolf"
|
||||
"^/tmp"
|
||||
"/project/.*/documentation"
|
||||
];
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
|
||||
settings = {
|
||||
highlight = {
|
||||
pattern = [ ".*<(KEYWORDS)\s*:" ];
|
||||
pattern = [ ".*<(KEYWORDS)\\s*:" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
open_mapping = "[[<c-\>]]";
|
||||
open_mapping = "[[<c-\\>]]";
|
||||
direction = "float";
|
||||
float_opts = {
|
||||
border = "curved";
|
||||
@@ -33,7 +33,7 @@
|
||||
end
|
||||
end
|
||||
'';
|
||||
open_mapping = "[[<c-\>]]";
|
||||
open_mapping = "[[<c-\\>]]";
|
||||
on_create = "function() end";
|
||||
on_open = "function() end";
|
||||
on_close = "function() end";
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
settings = {
|
||||
ft_blocklist = [ "markdown" ];
|
||||
patterns = [ "[[%s/\(\n\n\)\n\+/\1/]]" ];
|
||||
patterns = [ "[[%s/\\(\\n\\n\\)\\n\\+/\\1/]]" ];
|
||||
trim_on_write = false;
|
||||
highlight = true;
|
||||
};
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
utf8 = "default";
|
||||
};
|
||||
fileEncoding = "utf8";
|
||||
meta = "$\{version} $\{language} $\{encoding}";
|
||||
meta = "\${version} \${language} \${encoding}";
|
||||
nonstandardSymbol.__empty = { };
|
||||
path = [
|
||||
"?.lua"
|
||||
|
||||
Reference in New Issue
Block a user