From 993dbd7fa1094ab6637a42aa8f10747c50f9d5bf Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 27 Feb 2025 19:26:30 +0300 Subject: [PATCH] updates from ya macbook --- shell/zsh/zshrc | 7 +++++++ vim/coc.vim | 5 +++++ vim/ftplugin/go.vim | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/shell/zsh/zshrc b/shell/zsh/zshrc index db2d811..f38706b 100644 --- a/shell/zsh/zshrc +++ b/shell/zsh/zshrc @@ -19,3 +19,10 @@ if [ -f ~/.zshrc_local ] then source ~/.zshrc_local fi + +# The next line updates PATH for CLI. +if [ -f '/Users/dmchumak/yandex-cloud/path.bash.inc' ]; then source '/Users/dmchumak/yandex-cloud/path.bash.inc'; fi + +# The next line enables shell command completion for yc. +if [ -f '/Users/dmchumak/yandex-cloud/completion.zsh.inc' ]; then source '/Users/dmchumak/yandex-cloud/completion.zsh.inc'; fi + diff --git a/vim/coc.vim b/vim/coc.vim index abfa0d4..6417400 100644 --- a/vim/coc.vim +++ b/vim/coc.vim @@ -43,6 +43,11 @@ nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) +" Remap keys for applying refactor code actions +nmap re (coc-codeaction-refactor) +xmap r (coc-codeaction-refactor-selected) +nmap r (coc-codeaction-refactor-selected) + "set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " Applying codeAction to the selected region. diff --git a/vim/ftplugin/go.vim b/vim/ftplugin/go.vim index c6de6df..91f004a 100644 --- a/vim/ftplugin/go.vim +++ b/vim/ftplugin/go.vim @@ -1,2 +1,2 @@ -let g:go_imports_autosave = 0 +let g:go_imports_autosave = 1