This commit is contained in:
Jaroslaw Konik 2024-05-09 21:35:35 +02:00
parent 26e604ace0
commit 2a67544811
5 changed files with 63 additions and 4 deletions

56
.zshrc Normal file
View file

@ -0,0 +1,56 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/jaroslaw/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# unset SSH_ASKPASS
# export PYTHONSTARTUP=.python_startup.py
# eval "$(~/.rbenv/bin/rbenv init - bash)"
# alias nvim=nvim_listen.sh
# export TERM='xterm-256color'
#
nvr_git () {
local repo_path=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$repo_path" ]; then
local servername=/tmp/nvr$(echo $repo_path | tr "/" "_")
nvr -s --servername $servername "$@"
else
/usr/bin/nvim "$@"
fi
}
alias nvim=nvr_git
alias vim=nvim
export EDITOR=nvim
export PATH="$PATH:$HOME/.cargo/bin"
. "$HOME/.cargo/env"
eval "$(starship init zsh)"
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
# Wasmer
# export WASMER_DIR="/home/jaroslaw/.wasmer"
# [ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"
# export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
alias export_esp=". /home/jaroslaw/bin/export-esp.sh"
alias get_idf='. $HOME/src/esp/esp-idf/export.sh'
[ -f "/home/jaroslaw/.ghcup/env" ] && . "/home/jaroslaw/.ghcup/env" # ghcup-env
bindkey '^[[A' up-line-or-search
bindkey '^[[B' down-line-or-search
ssh-add -q ~/.ssh/id_rsa
eval `luarocks path`

File diff suppressed because one or more lines are too long

View file

@ -233,7 +233,7 @@ local on_attach = function(bufnr)
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, opts)
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts)
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '<leader>k', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, opts)

View file

@ -3,13 +3,15 @@ tab_bar_style powerline
font_size 13.0
tab_bar_min_tabs 1
tab_powerline_style slanted
map ctrl+g kitten hints --type=linenum --linenum-action=self nvr -s +{line} {path}
map ctrl+g kitten hints --type=linenum --linenum-action=self nvim -s +{line} {path}
tab_bar_edge top
include ./theme.conf
map f1 new_tab
map ctrl+shift+w no_op
map alt+>, no_op
map alt+< no_op
allow_remote_control yes
listen_on unix:@mykitty
enabled_layouts splits

View file

@ -9,5 +9,6 @@
"workbench.productIconTheme": "material-product-icons",
"workbench.iconTheme": "catppuccin-mocha",
"editor.inlayHints.enabled": "offUnlessPressed",
"rust-analyzer.lens.implementations.enable": false
"rust-analyzer.lens.implementations.enable": false,
"remote.autoForwardPortsSource": "hybrid"
}