fish config stuff

This commit is contained in:
LordMZTE 2021-04-13 01:06:56 +02:00
parent ef62d48055
commit 93015291ff
2 changed files with 42 additions and 14 deletions

View file

@ -5,8 +5,11 @@ fish_vi_key_bindings
alias ls="lsd"
alias ll="ls -l"
alias la="ll -a"
alias lt="la --tree"
alias lt="ll --tree"
alias clip="xclip -sel clip"
alias nv="nvim"
alias nvide="rbg neovide --multiGrid"
function rbg
$argv &>/dev/null&
end
@ -16,6 +19,12 @@ function rbgd
disown
end
function foreachdir
for file in (find $argv[1] -type f -print)
f=$file eval $argv[2..-1]
end
end
function !!
eval $history[1]
end
@ -25,12 +34,26 @@ function mkdircd
cd $argv[1]
end
function ifpresent
if which $argv[1] &> /dev/null
eval $argv[2..-1]
end
end
function todos
rg -i -H todo
end
# ENV
export CXX=clang++
export EDITOR=nvim
export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin:/var/lib/snapd/snap/bin"
export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin:/var/lib/snapd/snap/bin:$HOME/go/bin"
# initialization stuff
ifpresent starship 'starship init fish | source'
ifpresent zoxide 'zoxide init fish | source'
ifpresent cod 'cod init %self fish | source'
ifpresent navi 'navi widget fish | source'
ifpresent opam 'eval (opam env)'
starship init fish | source
zoxide init fish | source
cod init %self fish | source

View file

@ -1,12 +1,17 @@
{
"languageserver": {
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"]
}
},
"java.home": "/usr/lib/jvm/java-11-graalvm"
"languageserver": {
"haskell": {
"command": "haskell-language-server-wrapper",
"args": ["--lsp"],
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
"filetypes": ["haskell", "lhaskell"]
},
"ocaml-lsp": {
"command": "opam",
"args": ["config", "exec", "--", "ocamllsp"],
"filetypes": ["ocaml", "reason"]
}
},
"java.home": "/usr/lib/jvm/java-11-graalvm"
}