Skip to content

Commit

Permalink
feat: update dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nekottyo committed Nov 29, 2024
1 parent 8f3144f commit a9dfdeb
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 17 deletions.
27 changes: 27 additions & 0 deletions .config/dein/plugins.toml
Original file line number Diff line number Diff line change
Expand Up @@ -587,3 +587,30 @@ let g:colorizer_auto_color = 1
[[plugins]]
repo = 'tsuyoshicho/vim-efm-langserver-settings'
depends = ['coc.nvim']

[[plugins]]
repo = 'kevinhwang91/promise-async'

[[plugins]]
repo = 'kevinhwang91/nvim-ufo'
depends = ['promise-async','nvim-treesitter']
hook_add = '''
lua <<EOF
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true
-- Using ufo provider need remap `zR` and `zM`. If Neovim is 0.6.1, remap yourself
vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
require('ufo').setup({
provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent'}
end
})
EOF
'''

35 changes: 21 additions & 14 deletions .config/zsh/anyenv-defer.zsh
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# go
# export GOPATH=${HOME}/.golang
# export GOROOT=$(go env GOROOT )
# export PATH=${GOPATH}/bin:$(go env GOPATH)/bin:${PATH}

source ~/.config/zsh/functions/exists

# https://zenn.dev/ktakayama/articles/27b9d6218ed2f0ee9992
if exists "anyenv"
then
if ! [ -f /tmp/anyenv.cache ]; then
anyenv init - --no-rehash > /tmp/anyenv.cache
zcompile /tmp/anyenv.cache
fi
source /tmp/anyenv.cache
if ! [ -f /tmp/anyenv.cache ]; then
anyenv init - --no-rehash > /tmp/anyenv.cache
zcompile /tmp/anyenv.cache
fi
source /tmp/anyenv.cache

if ! [ -f /tmp/nodeenv.cache ]; then
nodenv init - > /tmp/nodeenv.cache
zcompile /tmp/nodeenv.cache
fi
source /tmp/nodeenv.cache
if ! [ -f /tmp/nodeenv.cache ]; then
nodenv init - > /tmp/nodeenv.cache
zcompile /tmp/nodeenv.cache
fi
source /tmp/nodeenv.cache

if ! [ -f /tmp/goenv.cache ]; then
goenv init - > /tmp/goenv.cache
zcompile /tmp/goenv.cache
fi

export GOROOT="$(go env GOROOT)"
export GOBIN="${GOROOT}/bin"
export PATH="$(go env GOBIN):${PATH}"
source /tmp/goenv.cache
fi

exists "npm" && export PATH=${PATH}:$(npm bin):$(npm -g bin)
exists "npm" && export PATH=${PATH}:$(npm prefix /bin):$(npm prefix -g /bin)
6 changes: 5 additions & 1 deletion .tmux.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#run-shell "powerline-daemon -q"
# Prefix
set-option -g prefix C-z
unbind C-z
set -g extended-keys off
set -g prefix C-z
bind C-z send-prefix
# status
set -g status-interval 10

Expand All @@ -20,6 +23,7 @@ bind C-p kill-window
bind C-r source-file ~/.tmux.conf
unbind &
bind -r ^[ copy-mode
bind -r escape copy-mode
bind -r ^] paste-buffer

unbind y
Expand Down
2 changes: 0 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ if [ -z "$TMUX" ]; then
fi
fi

# source ~/.config/zsh/anyenv-defer.zsh

source ~/.config/zsh/zinit.zsh
export EDITOR=nvim

Expand Down

0 comments on commit a9dfdeb

Please sign in to comment.