update
This commit is contained in:
parent
26e604ace0
commit
2a67544811
5 changed files with 63 additions and 4 deletions
56
.zshrc
Normal file
56
.zshrc
Normal 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
2
init.lua
2
init.lua
|
|
@ -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>D', vim.lsp.buf.type_definition, opts)
|
||||||
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, 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', '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_prev, opts)
|
||||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
|
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts)
|
||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, opts)
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, opts)
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,15 @@ tab_bar_style powerline
|
||||||
font_size 13.0
|
font_size 13.0
|
||||||
tab_bar_min_tabs 1
|
tab_bar_min_tabs 1
|
||||||
tab_powerline_style slanted
|
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
|
tab_bar_edge top
|
||||||
include ./theme.conf
|
include ./theme.conf
|
||||||
map f1 new_tab
|
map f1 new_tab
|
||||||
map ctrl+shift+w no_op
|
map ctrl+shift+w no_op
|
||||||
map alt+>, no_op
|
map alt+>, no_op
|
||||||
map alt+< no_op
|
map alt+< no_op
|
||||||
|
allow_remote_control yes
|
||||||
|
listen_on unix:@mykitty
|
||||||
|
|
||||||
enabled_layouts splits
|
enabled_layouts splits
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,6 @@
|
||||||
"workbench.productIconTheme": "material-product-icons",
|
"workbench.productIconTheme": "material-product-icons",
|
||||||
"workbench.iconTheme": "catppuccin-mocha",
|
"workbench.iconTheme": "catppuccin-mocha",
|
||||||
"editor.inlayHints.enabled": "offUnlessPressed",
|
"editor.inlayHints.enabled": "offUnlessPressed",
|
||||||
"rust-analyzer.lens.implementations.enable": false
|
"rust-analyzer.lens.implementations.enable": false,
|
||||||
|
"remote.autoForwardPortsSource": "hybrid"
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue