mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 01:26:46 +00:00
updates
This commit is contained in:
@@ -25,18 +25,18 @@ return {
|
|||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { 'stylua' },
|
lua = { 'stylua' },
|
||||||
astro = { 'prettier' },
|
|
||||||
go = { 'gofmt' },
|
go = { 'gofmt' },
|
||||||
python = { 'ruff' },
|
python = { 'ruff' },
|
||||||
javascript = { 'biome', 'prettier', stop_after_first = true },
|
javascript = { 'biome', 'prettier', stop_after_first = true },
|
||||||
typescript = { 'biome', 'prettier', stop_after_first = true },
|
typescript = { 'biome', 'prettier', stop_after_first = true },
|
||||||
html = { 'prettier' },
|
html = { 'biome', 'prettier', stop_after_first = true },
|
||||||
css = { 'prettier' },
|
css = { 'biome', 'prettier', stop_after_first = true },
|
||||||
yaml = { 'prettier' },
|
|
||||||
rust = { 'rustfmt', lsp_format = 'fallback' },
|
rust = { 'rustfmt', lsp_format = 'fallback' },
|
||||||
json = { 'biome', 'prettier', stop_after_first = true },
|
json = { 'biome', 'prettier', stop_after_first = true },
|
||||||
|
astro = { 'biome', 'prettier', stop_after_first = true },
|
||||||
vue = { 'biome', 'prettier' },
|
vue = { 'biome', 'prettier' },
|
||||||
svelte = { 'biome', 'prettier', stop_after_first = true },
|
svelte = { 'biome', 'prettier', stop_after_first = true },
|
||||||
|
yaml = { 'prettier' },
|
||||||
php = { 'pint', stop_after_first = true },
|
php = { 'pint', stop_after_first = true },
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
|
|||||||
@@ -17,6 +17,27 @@ return {
|
|||||||
path = 1,
|
path = 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
lualine_x = {
|
||||||
|
{
|
||||||
|
'lsp_status',
|
||||||
|
icon = '', -- f013
|
||||||
|
symbols = {
|
||||||
|
-- Standard unicode symbols to cycle through for LSP progress:
|
||||||
|
spinner = { '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' },
|
||||||
|
-- Standard unicode symbol for when LSP is done:
|
||||||
|
done = '✓',
|
||||||
|
-- Delimiter inserted between LSP names:
|
||||||
|
separator = ' ',
|
||||||
|
},
|
||||||
|
-- List of LSP names to ignore (e.g., `null-ls`):
|
||||||
|
ignore_lsp = {},
|
||||||
|
-- Display the LSP name
|
||||||
|
show_name = true,
|
||||||
|
},
|
||||||
|
'encoding',
|
||||||
|
'fileformat',
|
||||||
|
'filetype',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
4
.zshrc
4
.zshrc
@@ -1,7 +1,7 @@
|
|||||||
# Set the directory we want to store zinit and plugins
|
# Set the directory we want to store zinit and plugins
|
||||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||||
|
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||||
# Source/Load zinit
|
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||||
source "${ZINIT_HOME}/zinit.zsh"
|
source "${ZINIT_HOME}/zinit.zsh"
|
||||||
|
|
||||||
# Add in zsh plugins
|
# Add in zsh plugins
|
||||||
|
|||||||
Reference in New Issue
Block a user