Add gh and glab cli and fix xdg-open

main
Julius Riegel 9 months ago
parent 97f50a6209
commit 70369fed4c

@ -60,6 +60,11 @@ roots = []
formatter = { command = "roc", args = ['format', '--stdin', '--stdout'] }
grammar = "roc"
[[language]]
name = "bash"
auto-format = true
formatter = { command = "shfmt", args = ["-s", "-sr", "-"]}
[language.auto-pairs]
'(' = ')'
'{' = '}'

@ -12,6 +12,10 @@ def --env main [] {
def `main open-file` [path: string] {
if ($path | str starts-with "http") {
/usr/bin/xdg-open $path
return
}
match ($path | path parse | get extension | str downcase) {
"png" => { open-image $path }
"jpg" => { open-image $path }

@ -40,7 +40,11 @@ config.modules = {
'translate-shell',
'tealdeer',
'jq',
'nodePackages.bash-language-server'
'nodePackages.bash-language-server',
'gh',
'glab',
'shellcheck',
'shfmt',
},
gui = mod {
'kdePackages.breeze-icons',

Loading…
Cancel
Save