updoots
This commit is contained in:
@@ -6,7 +6,7 @@ font:
|
|||||||
family: SFMono Nerd Font
|
family: SFMono Nerd Font
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
size: 11.0
|
size: 10.0
|
||||||
|
|
||||||
draw_bold_text_with_bright_colors: false
|
draw_bold_text_with_bright_colors: false
|
||||||
|
|
||||||
|
|||||||
@@ -98,9 +98,9 @@ require('Comment').setup({
|
|||||||
local cmp = require 'cmp'
|
local cmp = require 'cmp'
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
mapping = {
|
mapping = {
|
||||||
["<C-k>"] = cmp.mapping.select_prev_item(),
|
["<C-n>"] = cmp.mapping.select_prev_item(),
|
||||||
["<C-j>"] = cmp.mapping.select_next_item(),
|
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||||
["<C-l>"] = cmp.mapping.confirm({
|
["<Tab>"] = cmp.mapping.confirm({
|
||||||
behavior = cmp.ConfirmBehavior.Insert,
|
behavior = cmp.ConfirmBehavior.Insert,
|
||||||
select = true,
|
select = true,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ lsp.texlab.setup({
|
|||||||
texlab = {
|
texlab = {
|
||||||
build = {
|
build = {
|
||||||
executable = 'latexmk',
|
executable = 'latexmk',
|
||||||
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', '%f' },
|
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', 'main.tex' },
|
||||||
onSave = true,
|
onSave = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,12 @@ alias t='tmux a || tmux'
|
|||||||
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
|
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
|
||||||
alias gg='git grep $1'
|
alias gg='git grep $1'
|
||||||
alias tex='nix-shell ~/.dots/tex.nix'
|
alias tex='nix-shell ~/.dots/tex.nix'
|
||||||
alias mktex="latexmk -xelatex -shell-escape"
|
alias texmk="latexmk -xelatex -shell-escape"
|
||||||
|
alias mktex=texmk
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
|
|
||||||
|
alias cdt='mkdir /tmp/$(cat /proc/sys/kernel/random/uuid); cd $_'
|
||||||
|
|
||||||
alias l='ls -lFh --color'
|
alias l='ls -lFh --color'
|
||||||
alias la='ls -lAFh --color'
|
alias la='ls -lAFh --color'
|
||||||
alias ll='ls -l --color'
|
alias ll='ls -l --color'
|
||||||
@@ -21,6 +24,8 @@ alias rm='rm -i'
|
|||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
|
|
||||||
|
alias gg='git grep'
|
||||||
|
|
||||||
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
|
alias truecolor='curl -s https://raw.githubusercontent.com/JohnMorales/dotfiles/master/colors/24-bit-color.sh | bash'
|
||||||
alias nssh='SSH_AUTH_SOCK= ssh'
|
alias nssh='SSH_AUTH_SOCK= ssh'
|
||||||
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
||||||
@@ -41,7 +46,7 @@ ocr() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
name=${file%%.*}
|
name=${file%%.*}
|
||||||
ocrmypdf -l deu+eng+jpn --output-type pdf $file ${name}.ocr.pdf
|
ocrmypdf -l ger+eng --output-type pdf $file ${name}.ocr.pdf
|
||||||
}
|
}
|
||||||
|
|
||||||
# deprecated
|
# deprecated
|
||||||
|
|||||||
@@ -13,8 +13,9 @@ ICON="%(?.%{$fg[green]%}.%{$fg[red]%})λ>"
|
|||||||
DIR="%{$fg[blue]%}%~"
|
DIR="%{$fg[blue]%}%~"
|
||||||
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
||||||
HOSTN="%{$fg[yellow]%}%m "
|
HOSTN="%{$fg[yellow]%}%m "
|
||||||
|
NEWLINE=$'\n'
|
||||||
|
|
||||||
export PROMPT="${HOSTN}${DIR}${GIT} ${BREAK}${ICON}%{$reset_color%} "
|
export PROMPT="${HOSTN}${DIR}${GIT} ${BREAK}${NEWLINE}${ICON}%{$reset_color%} "
|
||||||
zstyle ':vcs_info:git:*' formats ' (%b )'
|
zstyle ':vcs_info:git:*' formats ' (%b )'
|
||||||
|
|
||||||
# show info in title bar
|
# show info in title bar
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ command! -bang -nargs=* GGrep
|
|||||||
\ 'git grep --line-number -- '.shellescape(<q-args>), 0,
|
\ 'git grep --line-number -- '.shellescape(<q-args>), 0,
|
||||||
\ fzf#vim#with_preview(), <bang>0)
|
\ fzf#vim#with_preview(), <bang>0)
|
||||||
|
|
||||||
map <C-p> :Files<CR>
|
map <C-p> :GFiles<CR>
|
||||||
map <C-f> :GGrep
|
map <C-f> :GGrep
|
||||||
|
|
||||||
fun! TrimWhitespace()
|
fun! TrimWhitespace()
|
||||||
|
|||||||
Reference in New Issue
Block a user