Compare commits

..

No commits in common. "dba8c3f6e80bd987188eda9dc33fe8d35340915b" and "c7d569ad799f616881fad88c4f8ce15cf3b88a97" have entirely different histories.

2 changed files with 13 additions and 19 deletions

View File

@ -11,17 +11,15 @@ end)
local default = { on_attach = require 'lsp.attach' }
for _, language in ipairs {
"clangd",
"cssls",
"html",
"cssls",
"clangd",
"tsserver",
"lua_ls",
"solargraph",
"standardrb",
"svelte",
"tsserver",
"yamlls", -- bun install --global yaml-language-server
"zls",
-- "ruby_lsp",
"yamlls" -- bun install --global yaml-language-server
} do
config[language].setup(ensure_capabilities(default))
end

22
zshrc
View File

@ -16,10 +16,6 @@ setopt hist_find_no_dups
setopt prompt_subst
setopt hist_ignore_space
autoload -z edit-command-line
zle -N edit-command-line
bindkey -M vicmd '\' edit-command-line
autoload -U compinit; compinit
bindkey -v
@ -29,7 +25,7 @@ run_task_prompt=$?
task_prompt() {
if [ $run_task_prompt -eq 0 ]
then
tasks="$(task rc.verbose: +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
tasks="$(task +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
if [ -n "$tasks" ]
then
echo "%F{black}$tasks\n%{%}"
@ -39,17 +35,17 @@ task_prompt() {
due_soon_prompt() {
if [ $run_task_prompt -eq 0 ]
then
if [ "$(task rc.verbose: +PENDING due.before:30min count)" -gt 0 ]; then
echo "%F{red}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
if [ "$(task +PENDING due.before:30min count)" -gt 0 ]; then
echo "%F{red}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task rc.verbose: +PENDING due.before:1h count)" -gt 0 ]; then
echo "%F{yellow}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
if [ "$(task +PENDING due.before:1h count)" -gt 0 ]; then
echo "%F{yellow}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task rc.verbose: +PENDING due.before:3h count)" -gt 0 ]; then
echo "%F{green}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
if [ "$(task +PENDING due.before:3h count)" -gt 0 ]; then
echo "%F{green}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task rc.verbose: +PENDING due.before:tomorrow count)" -gt 0 ]; then
echo "%F{black}%B$(task rc.verbose: +PENDING +DUE count)%b "; return
if [ "$(task +PENDING due.before:tomorrow count)" -gt 0 ]; then
echo "%F{black}%B$(task +PENDING +DUE count)%b "; return
fi
fi
}