Streamline zellij config

main
Julius Riegel 8 months ago
parent 9df2d65c49
commit 4783624570

@ -14,6 +14,7 @@ icon_theme = "vscode"
[[verbs]]
invocation = "edit"
key = "enter"
shortcut = "e"
external = "nu {{dirs.data}}/scripts/ide.nu open-file '{file}'"
apply_to = "file"
leave_broot = false
@ -23,3 +24,10 @@ invocation = "touch {name}"
external = "nu -c \"touch {directory}/{name}\""
apply_to = "any"
leave_broot = false
[[verb]]
invocation = "git_diff"
shortcut = "gd"
leave_broot = "false"
execution = "git difftool -y {file}"
apply_to = "file"

@ -2,6 +2,10 @@
command = "biome"
args = ["lsp-proxy"]
[language-server.eslint]
command = "vscode-eslint-language-server"
args = []
[language-server.roc_lang_server]
command = "roc_lang_server"
args = []
@ -12,14 +16,14 @@ args = ["server", "-m", "stream"]
[[language]]
name = "typescript"
language-servers = ["typescript-language-server", "biome", "graphql-language-service"]
language-servers = ["typescript-language-server", "biome", "graphql-language-service", "eslint"]
auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.ts"] }
indent = { tab-width = 4, unit = " " }
[[language]]
name = "javascript"
language-servers = ["typescript-language-server", "biome"]
language-servers = ["typescript-language-server", "biome", "eslint"]
auto-format = true
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.js"] }
indent = { tab-width = 4, unit = " " }

@ -8,8 +8,42 @@ layout {
plugin location="zellij:tab-bar"
}
children
pane size=2 borderless=true {
plugin location="zellij:status-bar"
pane size=1 borderless=true {
plugin location="https://github.com/dj95/zjstatus/releases/latest/download/zjstatus.wasm" {
format_left "#[fg=#6C7086]{command_pwd} [{command_git_branch}]"
format_center "{tabs}"
format_right "{command_cpuusage}#[fg=#6C7086] ∙ {command_memusage}#[fg=#6C7086] | {datetime}"
format_space ""
hide_frame_for_single_pane "true"
tab_normal "#[fg=white,dim] {name} "
tab_active "#[fg=purple,bold] {name} "
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
command_git_branch_format "#[fg=blue] {stdout} "
command_git_branch_interval "10"
command_git_branch_rendermode "static"
command_pwd_command "nu -c '$env.PWD | path relative-to $env.HOME'"
command_pwd_format "#[fg=#6C7086,bold]{stdout}"
command_pwd_interval "1"
command_pwd_interval "static"
command_cpuusage_command "nu -c 'sys | get cpu | get cpu_usage | math avg | math round -p 2 | $\"($in) %\"'"
command_cpuusage_format "#[fg=cyan]{stdout}"
command_cpuusage_interval "10"
command_cpuusage_interval "static"
command_memusage_command "nu -c 'sys | get mem.used'"
command_memusage_format "#[fg=green]{stdout}"
command_memusage_interval "10"
command_memusage_interval "static"
datetime "#[fg=#6C7086,bold]{format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Europe/Berlin"
}
}
}
tab name="Editor" split_direction="Vertical" hide_floating_panes=true {
@ -21,11 +55,14 @@ layout {
args "-c helix"
}
pane size="30%" split_direction="Horizontal" {
pane command="btm" size="20%" borderless=true {
args "--config" "{{dirs.config}}/bottom/dev.toml"
pane size="100%"
}
pane size="80%"
}
}
}
keybinds {
normal {
bind "Ctrl f" {ToggleFocusFullscreen;}
}
}

@ -61,6 +61,7 @@ config.modules = {
'docker',
'docker-compose',
'docker-compose-language-service',
'dive',
},
podman = mod {
'podman',

Loading…
Cancel
Save