Compare commits
3 commits
c7d569ad79
...
dba8c3f6e8
Author | SHA1 | Date | |
---|---|---|---|
dba8c3f6e8 | |||
0591593c7b | |||
337df78954 |
2 changed files with 19 additions and 13 deletions
|
@ -11,15 +11,17 @@ end)
|
||||||
|
|
||||||
local default = { on_attach = require 'lsp.attach' }
|
local default = { on_attach = require 'lsp.attach' }
|
||||||
for _, language in ipairs {
|
for _, language in ipairs {
|
||||||
"html",
|
|
||||||
"cssls",
|
|
||||||
"clangd",
|
"clangd",
|
||||||
"tsserver",
|
"cssls",
|
||||||
|
"html",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"solargraph",
|
"solargraph",
|
||||||
"standardrb",
|
"standardrb",
|
||||||
|
"svelte",
|
||||||
|
"tsserver",
|
||||||
|
"yamlls", -- bun install --global yaml-language-server
|
||||||
"zls",
|
"zls",
|
||||||
"yamlls" -- bun install --global yaml-language-server
|
-- "ruby_lsp",
|
||||||
} do
|
} do
|
||||||
config[language].setup(ensure_capabilities(default))
|
config[language].setup(ensure_capabilities(default))
|
||||||
end
|
end
|
||||||
|
|
22
zshrc
22
zshrc
|
@ -16,6 +16,10 @@ setopt hist_find_no_dups
|
||||||
setopt prompt_subst
|
setopt prompt_subst
|
||||||
setopt hist_ignore_space
|
setopt hist_ignore_space
|
||||||
|
|
||||||
|
autoload -z edit-command-line
|
||||||
|
zle -N edit-command-line
|
||||||
|
bindkey -M vicmd '\' edit-command-line
|
||||||
|
|
||||||
autoload -U compinit; compinit
|
autoload -U compinit; compinit
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
@ -25,7 +29,7 @@ run_task_prompt=$?
|
||||||
task_prompt() {
|
task_prompt() {
|
||||||
if [ $run_task_prompt -eq 0 ]
|
if [ $run_task_prompt -eq 0 ]
|
||||||
then
|
then
|
||||||
tasks="$(task +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
|
tasks="$(task rc.verbose: +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
|
||||||
if [ -n "$tasks" ]
|
if [ -n "$tasks" ]
|
||||||
then
|
then
|
||||||
echo "%F{black}$tasks\n%{%}"
|
echo "%F{black}$tasks\n%{%}"
|
||||||
|
@ -35,17 +39,17 @@ task_prompt() {
|
||||||
due_soon_prompt() {
|
due_soon_prompt() {
|
||||||
if [ $run_task_prompt -eq 0 ]
|
if [ $run_task_prompt -eq 0 ]
|
||||||
then
|
then
|
||||||
if [ "$(task +PENDING due.before:30min count)" -gt 0 ]; then
|
if [ "$(task rc.verbose: +PENDING due.before:30min count)" -gt 0 ]; then
|
||||||
echo "%F{red}%B$(task +PENDING +DUE count)%b "; return
|
echo "%F{red}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
|
||||||
fi
|
fi
|
||||||
if [ "$(task +PENDING due.before:1h count)" -gt 0 ]; then
|
if [ "$(task rc.verbose: +PENDING due.before:1h count)" -gt 0 ]; then
|
||||||
echo "%F{yellow}%B$(task +PENDING +DUE count)%b "; return
|
echo "%F{yellow}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
|
||||||
fi
|
fi
|
||||||
if [ "$(task +PENDING due.before:3h count)" -gt 0 ]; then
|
if [ "$(task rc.verbose: +PENDING due.before:3h count)" -gt 0 ]; then
|
||||||
echo "%F{green}%B$(task +PENDING +DUE count)%b "; return
|
echo "%F{green}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
|
||||||
fi
|
fi
|
||||||
if [ "$(task +PENDING due.before:tomorrow count)" -gt 0 ]; then
|
if [ "$(task rc.verbose: +PENDING due.before:tomorrow count)" -gt 0 ]; then
|
||||||
echo "%F{black}%B$(task +PENDING +DUE count)%b "; return
|
echo "%F{black}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue