diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 99260da..3ceb4aa 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -46,10 +46,10 @@ bind C-a send-keys 'C-a' # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'rose-pine/tmux' +set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' -set -g @plugin 'christoomey/vim-tmux-navigator' # Plugins settings # theme @@ -69,8 +69,9 @@ set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' # continuum -set -g @continuum-boot 'on' set -g @continuum-restore 'on' +set -g @continuum-boot 'on' +set -g @continuum-boot-options 'iterm' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm' diff --git a/vim/.config/nvim/lazy-lock.json b/vim/.config/nvim/lazy-lock.json index 7608562..d4fdb8e 100644 --- a/vim/.config/nvim/lazy-lock.json +++ b/vim/.config/nvim/lazy-lock.json @@ -1,24 +1,24 @@ { "LazyVim": { "branch": "main", "commit": "68ff818a5bb7549f90b05e412b76fe448f605ffb" }, - "LuaSnip": { "branch": "master", "commit": "1f4ad8bb72bdeb60975e98652636b991a9b7475d" }, - "SchemaStore.nvim": { "branch": "main", "commit": "357fe900baae09e1a3fcef913e49733d05d1f888" }, + "LuaSnip": { "branch": "master", "commit": "cab667e2674881001a86a7478fff7dc7791c63f5" }, + "SchemaStore.nvim": { "branch": "main", "commit": "6316dc88db89d97d190f24547adddd13569fb746" }, "bufferline.nvim": { "branch": "main", "commit": "9e8d2f695dd50ab6821a6a53a840c32d2067a78a" }, - "catppuccin": { "branch": "main", "commit": "cc717acba29259d578548973c41448b092453c52" }, + "catppuccin": { "branch": "main", "commit": "a8dfb969e76d1a0752d98b5347be9ffb9bca9592" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-nvim-lsp": { "branch": "main", "commit": "44b16d11215dce86f253ce0c30949813c0a90765" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, - "conform.nvim": { "branch": "master", "commit": "4524a687107c6e598017dc7356b7cd1eb046aa71" }, + "conform.nvim": { "branch": "master", "commit": "a5df96556c4c895777bf53177a8704b9b3e884e1" }, "dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" }, "dressing.nvim": { "branch": "master", "commit": "fe3071330a0720ce3695ac915820c8134b22d1b0" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "friendly-snippets": { "branch": "main", "commit": "43727c2ff84240e55d4069ec3e6158d74cb534b6" }, - "gitsigns.nvim": { "branch": "main", "commit": "af0f583cd35286dd6f0e3ed52622728703237e50" }, + "gitsigns.nvim": { "branch": "main", "commit": "0ccd5fb2316b3f8d8b2f775bc31cae7bc6a77a55" }, "indent-blankline.nvim": { "branch": "master", "commit": "29be0919b91fb59eca9e90690d76014233392bef" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "faeb361507aa1ef1b0e5645781e2aa0d36a4aa84" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "ab640b38ca9fa50d25d2d249b6606b9456b628d5" }, "mason-nvim-dap.nvim": { "branch": "main", "commit": "f0cd12f7a8a310c58cecebddb6b219ffad1cfd0f" }, "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, "mini.ai": { "branch": "main", "commit": "4a2e387b121352dfb478f440c9a5313a9d97006c" }, @@ -27,30 +27,30 @@ "mini.indentscope": { "branch": "main", "commit": "c8fdafa7bf603d758986a27eb546c55a5c73b1a3" }, "mini.pairs": { "branch": "main", "commit": "71f117fd57f930da6ef4126b24f594dd398bac26" }, "mini.surround": { "branch": "main", "commit": "af8129efcabe95fc08a233e9f91569829bed031f" }, - "neo-tree.nvim": { "branch": "v3.x", "commit": "f053f09962819c1558cd93639aa80edf7c314c17" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "230ff118613fa07138ba579b89d13ec2201530b9" }, "neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" }, - "neodev.nvim": { "branch": "main", "commit": "b2881eeb395d2b268de5fe9b5e201a8f1816beb8" }, + "neodev.nvim": { "branch": "main", "commit": "1dcac70c3b76259076353e2a32016c622d748e48" }, "neotest": { "branch": "master", "commit": "d424d262d01bccc1e0b038c9a7220a755afd2a1f" }, "neotest-go": { "branch": "main", "commit": "1a15e1136db43775214a3e7a598f8930c29c94b7" }, "neotest-python": { "branch": "master", "commit": "c969a5b0073f2b5c8eaf017d1652f9251d761a15" }, "noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" }, "nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" }, "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, - "nvim-dap": { "branch": "master", "commit": "9d81c11fd185a131f81841e64941859305f6c42d" }, + "nvim-dap": { "branch": "master", "commit": "e154fdb6d70b3765d71f296e718b29d8b7026a63" }, "nvim-dap-go": { "branch": "main", "commit": "a5cc8dcad43f0732585d4793deb02a25c4afb766" }, "nvim-dap-python": { "branch": "master", "commit": "e0be843877e7ae756ef1ee7a441ca0b9e1677da9" }, "nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "57f1dbd0458dd84a286b27768c142e1567f3ce3b" }, - "nvim-lint": { "branch": "master", "commit": "4f2d968a827d86bb40b7b1fad28c11f7b764fef3" }, - "nvim-lspconfig": { "branch": "master", "commit": "d5d7412ff267b92a11a94e6559d5507c43670a52" }, + "nvim-lint": { "branch": "master", "commit": "3a7c15331a57ba40a56f00f29173700af853fa03" }, + "nvim-lspconfig": { "branch": "master", "commit": "553c4e0e667167640c5398573f6f3a488ff8047a" }, "nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" }, "nvim-spectre": { "branch": "master", "commit": "a18a58015b46f02b4fe537ebfffd82e46110ff24" }, - "nvim-treesitter": { "branch": "master", "commit": "8b9f99660294dcd11d42572c84ee33a1e284f70d" }, - "nvim-treesitter-context": { "branch": "master", "commit": "c03f8aab1e6649036d69ba7e3af4d09cb7e4d977" }, + "nvim-treesitter": { "branch": "master", "commit": "cd583cfb5b492c4f81edc5e1916c9f59b7b0ef16" }, + "nvim-treesitter-context": { "branch": "master", "commit": "bf4d15ee4e96ff5201f16a4ed14443670662eb90" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "dbcd9388e3b119a87c785e10a00d62876077d23d" }, "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, - "nvim-ts-context-commentstring": { "branch": "main", "commit": "6c30f3c8915d7b31c3decdfe6c7672432da1809d" }, - "nvim-web-devicons": { "branch": "master", "commit": "3523d6e6d40ab11fd66c1b2732b3d6b60affa951" }, + "nvim-ts-context-commentstring": { "branch": "main", "commit": "bdd2a3293340465a516b126d10894f6d5cb5213c" }, + "nvim-web-devicons": { "branch": "master", "commit": "cdbcca210cf3655aa9b31ebf2422763ecd85ee5c" }, "persistence.nvim": { "branch": "main", "commit": "ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "rose-pine": { "branch": "main", "commit": "92762f4fa2144c05db760ea254f4c399a56a7ef5" }, diff --git a/vim/.config/nvim/lua/config/keymaps.lua b/vim/.config/nvim/lua/config/keymaps.lua index 6dd1906..4b47513 100644 --- a/vim/.config/nvim/lua/config/keymaps.lua +++ b/vim/.config/nvim/lua/config/keymaps.lua @@ -8,3 +8,6 @@ if Util.has("bufferline.nvim") then vim.keymap.set("n", "", "BufferLineMovePrev", { desc = "Move buffer left" }) vim.keymap.set("n", "", "BufferLineMoveNext", { desc = "Move buffer right" }) end + +-- fix exiting insert mode when in russian layout +vim.keymap.set("i", "", "") diff --git a/vim/.config/nvim/lua/plugins/xkbswitch.lua b/vim/.config/nvim/lua/plugins/xkbswitch.lua index 8c1bcf2..991f8d8 100644 --- a/vim/.config/nvim/lua/plugins/xkbswitch.lua +++ b/vim/.config/nvim/lua/plugins/xkbswitch.lua @@ -1,6 +1,7 @@ return { "lyokha/vim-xkbswitch", -- lang switcher init = function() - vim.g.XkbSwitchEnabled = 1 + vim.g.XkbSwitchEnabled = 3 + vim.g.XkbSwitchLib = "/usr/local/lib/libInputSourceSwitcher.dylib" end, } diff --git a/zsh/.p10k.zsh b/zsh/.p10k.zsh index 83e88a6..3af3047 100644 --- a/zsh/.p10k.zsh +++ b/zsh/.p10k.zsh @@ -1,7 +1,7 @@ -# Generated by Powerlevel10k configuration wizard on 2023-11-01 at 15:25 MSK. +# Generated by Powerlevel10k configuration wizard on 2023-11-22 at 16:43 MSK. # Based on romkatv/powerlevel10k/config/p10k-lean-8colors.zsh, checksum 27973. -# Wizard options: nerdfont-complete + powerline, large icons, unicode, lean_8colors, -# 2 lines, disconnected, no frame, sparse, many icons, concise, instant_prompt=verbose. +# Wizard options: nerdfont-v3 + powerline, small icons, unicode, lean_8colors, 2 lines, +# disconnected, no frame, sparse, many icons, concise, instant_prompt=verbose. # Type `p10k configure` to generate another config. # # Config for Powerlevel10k with 8-color lean prompt style. Type `p10k configure` to generate @@ -116,10 +116,10 @@ ) # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you. - typeset -g POWERLEVEL9K_MODE=nerdfont-complete + typeset -g POWERLEVEL9K_MODE=nerdfont-v3 # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added. - typeset -g POWERLEVEL9K_ICON_PADDING=moderate + typeset -g POWERLEVEL9K_ICON_PADDING=none # Basic style options that define the overall look of your prompt. You probably don't want to # change them. @@ -1600,7 +1600,7 @@ # Show battery in yellow when it's discharging. typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3 # Battery pictograms going from low to high level of charge. - typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578' + typeset -g POWERLEVEL9K_BATTERY_STAGES='\UF008E\UF007A\UF007B\UF007C\UF007D\UF007E\UF007F\UF0080\UF0081\UF0082\UF0079' # Don't show the remaining time to charge/discharge. typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false diff --git a/zsh/.zprofile b/zsh/.zprofile index 5791174..2134103 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,3 +1,7 @@ +# python +alias python="python3" + +# pyenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" diff --git a/zsh/.zshrc b/zsh/.zshrc index 3d49af6..2d48f26 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,3 +1,8 @@ +# general +alias python="python3" +export EDITOR='nvim' +export VISUAL="nvim" + # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block, everything else may go below. @@ -76,6 +81,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k" export FZF_DEFAULT_COMMAND='ag --hidden --path-to-ignore ~/.ignore -g ""' export AUTOSWITCH_SILENT=1 +export ZSH_PYENV_QUIET=1 # Which plugins would you like to load? # Standard plugins can be found in ~/.oh-my-zsh/plugins/* @@ -85,7 +91,6 @@ export AUTOSWITCH_SILENT=1 plugins=( git fzf - tmux brew pyenv python @@ -96,11 +101,13 @@ plugins=( zsh-autosuggestions zsh-syntax-highlighting zsh-history-substring-search - zsh-completions z autoswitch_virtualenv ) +# workaround for zsh-completions +fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src + source $ZSH/oh-my-zsh.sh export HISTSIZE=10000 @@ -150,72 +157,29 @@ bindkey '^P' history-substring-search-up bindkey '^N' history-substring-search-down # nvim -export EDITOR='nvim' alias vim="nvim" alias vimdiff='nvim -d' -alias vim-lazy="NVIM_APPNAME=lazy-vim nvim" - -function nvims() { - items=("default" "lazy-vim") - config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config  " --height=~50% --layout=reverse --border --exit-0) - if [[ -z $config ]]; then - echo "Nothing selected" - return 0 - elif [[ $config == "default" ]]; then - config="" - fi - NVIM_APPNAME=$config nvim $@ -} # Aliases -alias python="python3" -alias pip="pip3" alias ssh='TERM=xterm ssh' -alias tmux-git-session="~/Documents/scripts/tmux-git-session.sh $1" -alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' - -# Environs -export VISUAL="nvim" # zsh-history-substring-search export HISTORY_SUBSTRING_SEARCH_PREFIXED=1 -# brew -export PATH="/usr/local/sbin:$PATH" - -# direnv -export DIRENV_LOG_FORMAT= -eval "$(direnv hook zsh)" - -# python -# ipdb -# export PYTHONBREAKPOINT=ipdb.set_trace # pyenv -eval "$(pyenv init -)" -eval "$(pyenv virtualenv-init -)" -# Pyenv config export PYENV_ROOT="$HOME/.pyenv" -export PYENV_VIRTUALENV_DISABLE_PROMPT=1 export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" # go export GOPATH=$HOME/go -export GOROOT=/usr/local/opt/go/libexec +export GOROOT=/opt/homebrew/opt/go/libexec export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOROOT/bin # haskell -export PATH="$HOME/.local/bin:$PATH" -source ~/.ghcup/env +#export PATH="$HOME/.local/bin:$PATH" +#source ~/.ghcup/env # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh - -[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh - -test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" - -[ -f "/Users/vlad/.ghcup/env" ] && source "/Users/vlad/.ghcup/env" # ghcup-env - -[[ /usr/local/bin/kubectl ]] && source <(kubectl completion zsh)