chore(nvim): format zsh, bash

main
sudo pacman -Syu 2024-04-04 17:04:12 +07:00
parent 71b56ea1b6
commit 2c9b782535
2 changed files with 50 additions and 47 deletions

View File

@ -429,6 +429,7 @@ require("lazy").setup({
local conform = require("conform") local conform = require("conform")
conform.setup({ conform.setup({
formatters_by_ft = { formatters_by_ft = {
bash = { "shfmt" },
go = { "gofumpt" }, go = { "gofumpt" },
javascript = { "deno_fmt" }, javascript = { "deno_fmt" },
json = { "deno_fmt" }, json = { "deno_fmt" },
@ -437,6 +438,7 @@ require("lazy").setup({
python = { "ruff_format" }, python = { "ruff_format" },
sh = { "shfmt" }, sh = { "shfmt" },
toml = { "taplo" }, toml = { "taplo" },
zsh = { "shfmt" },
}, },
formatters = { formatters = {
gofumpt = { gofumpt = {

View File

@ -60,6 +60,7 @@ if command -v fzf &>/dev/null; then
export FZF_ALT_C_COMMAND="fd --type directory --color=always" export FZF_ALT_C_COMMAND="fd --type directory --color=always"
fi fi
# https://github.com/catppuccin/fzf
export FZF_DEFAULT_OPTS="\ export FZF_DEFAULT_OPTS="\
--ansi \ --ansi \
--pointer='🔫' --prompt='🪓 ' \ --pointer='🔫' --prompt='🪓 ' \