Additions and syntax fixes.
This commit is contained in:
parent
a54130cb7c
commit
1d17a9ffbd
|
|
@ -47,7 +47,7 @@ return {
|
|||
show_help = "<f1>",
|
||||
},
|
||||
},
|
||||
-- 👇 if you use $(open_for_directories=true), this is recommended
|
||||
-- 👇 if you use \$(open_for_directories=true), this is recommended
|
||||
init = function()
|
||||
-- mark netrw as loaded so it's not loaded at all.
|
||||
--
|
||||
|
|
@ -58,7 +58,52 @@ return {
|
|||
}
|
||||
EOF
|
||||
}
|
||||
conf_print_yazi | tee ${LAZY_DEST}/yazi.lua
|
||||
conf_print_yazi | tee "${LAZY_DEST}/yazi.lua"
|
||||
|
||||
conf_print_time-machine() {
|
||||
cat <<EOF
|
||||
return {
|
||||
"y3owk1n/time-machine.nvim",
|
||||
cmd = {
|
||||
"TimeMachineToggle",
|
||||
"TimeMachinePurgeBuffer",
|
||||
"TimeMachinePurgeAll",
|
||||
"TimeMachineLogShow",
|
||||
"TimeMachineLogClear",
|
||||
},
|
||||
---@type TimeMachine.Config
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>t",
|
||||
"",
|
||||
desc = "Time Machine",
|
||||
},
|
||||
{
|
||||
"<leader>tt",
|
||||
"<cmd>TimeMachineToggle<cr>",
|
||||
desc = "[Time Machine] Toggle Tree",
|
||||
},
|
||||
{
|
||||
"<leader>tx",
|
||||
"<cmd>TimeMachinePurgeCurrent<cr>",
|
||||
desc = "[Time Machine] Purge current",
|
||||
},
|
||||
{
|
||||
"<leader>tX",
|
||||
"<cmd>TimeMachinePurgeAll<cr>",
|
||||
desc = "[Time Machine] Purge all",
|
||||
},
|
||||
{
|
||||
"<leader>tl",
|
||||
"<cmd>TimeMachineLogShow<cr>",
|
||||
desc = "[Time Machine] Show log",
|
||||
},
|
||||
},
|
||||
}
|
||||
EOF
|
||||
}
|
||||
conf_print_time-machine | tee "${LAZY_DEST}/time-machine.lua"
|
||||
|
||||
# Use triple backtick for code blocks rather than tab
|
||||
# set code-block-style: or MD046: om ~/.markdownlint-cli2.yaml
|
||||
|
|
@ -69,7 +114,7 @@ config:
|
|||
style: "fenced"
|
||||
EOF
|
||||
}
|
||||
conf_print_markdownlint_yaml | tee ${DEST}/.markdownlint-cli2.yaml
|
||||
conf_print_markdownlint_yaml | tee "${DEST}/.markdownlint-cli2.yaml"
|
||||
|
||||
conf_print_markdownlint() {
|
||||
cat <<EOF
|
||||
|
|
@ -87,7 +132,7 @@ return {
|
|||
}
|
||||
EOF
|
||||
}
|
||||
conf_print_markdownlint | tee ${LAZY_DEST}/lint.lua
|
||||
conf_print_markdownlint | tee "${LAZY_DEST}/lint.lua"
|
||||
|
||||
# mise-en-plave
|
||||
# https://mise.jdx.dev/mise-cookbook/neovim.html
|
||||
|
|
@ -107,24 +152,24 @@ return {
|
|||
EOF
|
||||
|
||||
}
|
||||
config_print_mise_syntax | tee ${LAZY_DEST}/mise-syntax.lua
|
||||
config_print_mise_syntax | tee "${LAZY_DEST}/mise-syntax.lua"
|
||||
|
||||
# define Tree-sitter query files that extend or customize syntax highlighting and
|
||||
# code injection for TOML files
|
||||
mkdir -p ${LAZY_SYNTAX}/toml
|
||||
mkdir -p "${LAZY_SYNTAX}/toml"
|
||||
|
||||
# languages using # comments
|
||||
mkdir -p ${LAZY_SYNTAX}/bash
|
||||
mkdir -p ${LAZY_SYNTAX}/python
|
||||
mkdir -p "${LAZY_SYNTAX}/bash"
|
||||
mkdir -p "${LAZY_SYNTAX}/python"
|
||||
|
||||
# languages using // comments
|
||||
mkdir -p ${LAZY_SYNTAX}/go
|
||||
mkdir -p ${LAZY_SYNTAX}/rust
|
||||
mkdir -p "${LAZY_SYNTAX}/go"
|
||||
mkdir -p "${LAZY_SYNTAX}/rust"
|
||||
|
||||
# Other
|
||||
mkdir -p ${LAZY_SYNTAX}/markdown
|
||||
mkdir -p ${LAZY_SYNTAX}/html
|
||||
mkdir -p ${LAZY_SYNTAX}/yaml
|
||||
mkdir -p "${LAZY_SYNTAX}/markdown"
|
||||
mkdir -p "${LAZY_SYNTAX}/html"
|
||||
mkdir -p "${LAZY_SYNTAX}/yaml"
|
||||
|
||||
conf_print_toml_injections() {
|
||||
cat <<EOF
|
||||
|
|
@ -172,7 +217,7 @@ conf_print_toml_injections() {
|
|||
)
|
||||
EOF
|
||||
}
|
||||
conf_print_toml_injections | tee ${LAZY_SYNTAX}/toml/injections.scm
|
||||
conf_print_toml_injections | tee "${LAZY_SYNTAX}/toml/injections.scm"
|
||||
|
||||
conf_print_toml_injections() {
|
||||
cat <<EOF
|
||||
|
|
@ -246,8 +291,8 @@ conf_print_toml_injections() {
|
|||
; https://github.com/neovim/neovim/issues/32635
|
||||
EOF
|
||||
}
|
||||
conf_print_bash_injections | tee ${LAZY_SYNTAX}/bash/injections.scm
|
||||
conf_print_bash_injections | tee ${LAZY_SYNTAX}/python/injections.scm
|
||||
conf_print_bash_injections | tee "${LAZY_SYNTAX}/bash/injections.scm"
|
||||
conf_print_bash_injections | tee "${LAZY_SYNTAX}/python/injections.scm"
|
||||
|
||||
conf_print_go_injections() {
|
||||
cat <<EOF
|
||||
|
|
@ -280,8 +325,8 @@ conf_print_go_injections() {
|
|||
(#set! injection.language "kdl"))
|
||||
EOF
|
||||
}
|
||||
conf_print_go_injections | tee ${LAZY_SYNTAX}/go/injections.scm
|
||||
conf_print_go_injections | tee ${LAZY_SYNTAX}/rust/injections.scm
|
||||
conf_print_go_injections | tee "${LAZY_SYNTAX}/go/injections.scm"
|
||||
conf_print_go_injections | tee "${LAZY_SYNTAX}/rust/injections.scm"
|
||||
|
||||
# To only apply the highlighting on mise files instead of all toml files, the
|
||||
# is-mise? predicate is used. THe following will consider any toml file
|
||||
|
|
@ -298,10 +343,9 @@ return {
|
|||
end, { force = true, all = false })
|
||||
end,
|
||||
}
|
||||
EOF
|
||||
EOF
|
||||
}
|
||||
conf_print_predicates() | tee ${LAZYDEST}/mise-treesitter.lua
|
||||
|
||||
conf_print_predicates | tee "${LAZY_DEST}/mise-treesitter.lua"
|
||||
|
||||
# otter https://github.com/jmbuhr/otter.nvim
|
||||
# https://github.com/jmbuhr/LazyVim/blob/main/lua/lazyvim/plugins/extras/lsp/otter.lua
|
||||
|
|
@ -325,7 +369,7 @@ return {
|
|||
}
|
||||
EOF
|
||||
}
|
||||
conf_print_otter_lsp | tee ${LAZY_DEST}/otter-lsp.lua
|
||||
conf_print_otter_lsp | tee "${LAZY_DEST}/otter-lsp.lua"
|
||||
|
||||
conf_print_otter_lsp() {
|
||||
cat <<'EOF'
|
||||
|
|
@ -346,7 +390,7 @@ return {
|
|||
}
|
||||
EOF
|
||||
}
|
||||
conf_print_otter_lsp | tee ${LAZY_DEST}/otter-lsp.lua
|
||||
conf_print_otter_lsp | tee "${LAZY_DEST}/otter-lsp.lua"
|
||||
|
||||
# Scrollback for kitty terminal
|
||||
config_print_kitty_scrollback() {
|
||||
|
|
@ -365,7 +409,7 @@ return {
|
|||
}
|
||||
EOF
|
||||
}
|
||||
config_print_kitty_scrollback | tee ${LAZY_DEST}/kitty-scrollback.lua
|
||||
config_print_kitty_scrollback | tee "${LAZY_DEST}/kitty-scrollback.lua"
|
||||
|
||||
# Scrollback for kitty terminal with options
|
||||
config_print_kitty_scrollback() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue