This commit is contained in:
Marco Thomas
2023-06-01 08:19:11 +02:00
parent 3d0d95a4bb
commit 1e9785e8e2
6 changed files with 15 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ font:
family: SFMono Nerd Font
style: Regular
size: 11.0
size: 10.0
draw_bold_text_with_bright_colors: false

View File

@@ -98,9 +98,9 @@ require('Comment').setup({
local cmp = require 'cmp'
cmp.setup({
mapping = {
["<C-k>"] = cmp.mapping.select_prev_item(),
["<C-j>"] = cmp.mapping.select_next_item(),
["<C-l>"] = cmp.mapping.confirm({
["<C-n>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(),
["<Tab>"] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Insert,
select = true,
}),

View File

@@ -48,7 +48,7 @@ lsp.texlab.setup({
texlab = {
build = {
executable = 'latexmk',
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', '%f' },
args = { '-xelatex', '-interaction=nonstopmode', '-synctex=1', '-shell-escape', 'main.tex' },
onSave = true,
}
}

View File

@@ -10,9 +10,12 @@ alias t='tmux a || tmux'
alias o='xdg-open' # to change a mime use: `xdg-mime default APPLICATION HANDLE`
alias gg='git grep $1'
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 cdt='mkdir /tmp/$(cat /proc/sys/kernel/random/uuid); cd $_'
alias l='ls -lFh --color'
alias la='ls -lAFh --color'
alias ll='ls -l --color'
@@ -21,6 +24,8 @@ alias rm='rm -i'
alias cp='cp -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 nssh='SSH_AUTH_SOCK= ssh'
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
@@ -41,7 +46,7 @@ ocr() {
return
fi
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

View File

@@ -13,8 +13,9 @@ ICON="%(?.%{$fg[green]%}.%{$fg[red]%})λ>"
DIR="%{$fg[blue]%}%~"
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
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 )'
# show info in title bar

View File

@@ -115,7 +115,7 @@ command! -bang -nargs=* GGrep
\ 'git grep --line-number -- '.shellescape(<q-args>), 0,
\ fzf#vim#with_preview(), <bang>0)
map <C-p> :Files<CR>
map <C-p> :GFiles<CR>
map <C-f> :GGrep
fun! TrimWhitespace()