Skip to content

Commit

Permalink
ts_ls
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarnajjar committed Sep 22, 2024
1 parent 1ae2f7c commit 9b64366
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion git/config
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
pager = delta || less || "nvim -c '%sm/\\e.\\{-}m//g' -c 'set ft=diff' -c '1' -"
excludesFile = ~/.config/git/gitignore
abbrev = 8
eol = LF

[alias]
st = status
lol = log --graph --decorate --pretty=oneline --abbrev-commit --abbrev=8 --all
lg1 = log --graph --pretty=format:'%C(bold yellow)%h%Creset -%C(bold cyan)%aD%C(reset) %C(bold green)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --abbrev=8
lg2 = log --graph --abbrev-commit --abbrev=8 --decorate --format=format:'%C(bold yellow)%h%C(reset) - %C(bold cyan)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold green)%d%C(reset)' --all
lg3 = log --graph --abbrev-commit --abbrev=8 --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
gco = "!f() { git branch -a | grep -e $1 -m 1 | sed 's/remotes\\/origin\\///' | xargs git checkout; }; f"
gco = "!f() { git branch -a | grep -e $1 -m 1 | sed 's/remotes\\/origin\\///' | xargs git checkout; git fetch --prune; git reset --hard origin/$(git rev-parse --abbrev-ref HEAD); }; f"
staash = stash --all
bb = !git for-each-ref --color --sort=-committerdate --format=$'%(color:red)%(ahead-behind:HEAD)\t%(color:blue)%(refname:short)\t%(color:yellow)%(committerdate:relative)\t%(color:default)%(describe)' refs/heads/ --no-merged | sed 's/ /\t/' | column -s=$'\t' -t -c 'Ahead,Behind,Branch Name,Last Commit,Description'

Expand Down
2 changes: 1 addition & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function LoadLsp()
-- Use a loop to conveniently both setup defined servers
-- and map buffer local keybindings when the language server attaches
local servers = {
"tsserver",
"ts_ls",
"cssls",
"pyright", -- check for compatible nodejs version => tail $(lua vim.lsp.get_log_path())
"bashls",
Expand Down
2 changes: 1 addition & 1 deletion shell/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export HISTCONTROL=ignoreboth:erasedups
export HISTFILESIZE=9999999999
export HISTSIZE=9999999999
export SAVEHIST=9999999999
export HISTTIMEFORMAT="[%F %T]: "
# export HISTTIMEFORMAT="[%F %T]: "

# useful functions stolen from https://github.com/Bash-it/bash-it
function mkcd() {
Expand Down

0 comments on commit 9b64366

Please sign in to comment.