Compare commits

..

2 Commits

Author SHA1 Message Date
d84bc8062e Use prettier instead of prettierd
I keep having issues with prettierd not working and prettier works just
fine.
2025-12-05 13:48:28 +01:00
4e3d0500b9 Fixed pnpm setup 2025-12-03 21:32:20 +01:00
3 changed files with 13 additions and 11 deletions

View File

@@ -5,15 +5,15 @@ local formatters_by_ft = {
go = { "goimports" }, go = { "goimports" },
python = { "ruff_organize_imports", "ruff_format" }, python = { "ruff_organize_imports", "ruff_format" },
rust = { "rustfmt" }, rust = { "rustfmt" },
javascript = { "prettierd" }, javascript = { "prettier" },
javascriptreact = { "prettierd" }, javascriptreact = { "prettier" },
typescript = { "prettierd" }, typescript = { "prettier" },
typescriptreact = { "prettierd" }, typescriptreact = { "prettier" },
css = { "prettierd" }, css = { "prettier" },
markdown = { "prettierd" }, markdown = { "prettier" },
yaml = { "prettierd" }, yaml = { "prettier" },
lua = { "stylua" }, lua = { "stylua" },
json = { "prettierd" }, json = { "prettier" },
toml = { "taplo" }, toml = { "taplo" },
-- ["*"] = { "injected" }, -- ["*"] = { "injected" },
["_"] = { "trim_whitespace", "trim_newlines" }, ["_"] = { "trim_whitespace", "trim_newlines" },

View File

@@ -24,7 +24,7 @@ local ensure_installed = {
end, end,
}, },
"ruff", "ruff",
"prettierd", "prettier",
"stylua", "stylua",
"eslint", "eslint",
} }

View File

@@ -87,12 +87,14 @@ if (( $+commands[devcontainer] )); then
} }
fi fi
if (( $+commands[pnpm] )); then export PNPM_HOME="/home/tim/.local/share/pnpm"
export PNPM_HOME="/home/tim/.local/share/pnpm" if [ -d "$PNPM_HOME" ]; then
case ":$PATH:" in case ":$PATH:" in
*":$PNPM_HOME:"*) ;; *":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;; *) export PATH="$PNPM_HOME:$PATH" ;;
esac esac
else
unset PNPM_HOME
fi fi
export FZF_DEFAULT_OPTS='--tmux' export FZF_DEFAULT_OPTS='--tmux'