4 files changed,
22 insertions(+),
18 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-03-27 14:05:41 +0200
Parent:
946566a
jump to
| M | config/nvim/init.vim |
| M | tmux.conf |
| M | vscode/settings.json |
| M | zshrc |
M
config/nvim/init.vim
@@ -65,27 +65,30 @@
" Disable sound set visualbell t_vb= -"== Settings for specific files -autocmd FileType python,json setlocal ex sw=4 ts=4 -autocmd FileType go setlocal noex sw=4 ts=4 -autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2 -autocmd FileType css,yaml setlocal ex sw=4 ts=4 "== Aliases -command! WQ :wq -command! Wq :wq -command! Wiki :e ~/doc/index.md +command! VTerm :vs | res 40 | set nonu nornu | startinsert | wincmd L | term +command! Term :sp | res 40 | set nonu nornu | startinsert | wincmd J | term command! Prettier :silent !prettier % --write command! ESlint :!eslint % -command! Flake8 :!flake8 % command! Black :silent !black % command! AutoPep8 :silent !autopep8 % --in-place +command! Flake8 :!flake8 % command! GoFmt :silent !gofmt -w % +command! GoLint :!golint % + + +"== Settings for specific files +autocmd FileType python setlocal ex sw=4 ts=4 +autocmd FileType go setlocal noex sw=4 ts=4 +autocmd FileType javascript,javascriptreact,yaml setlocal et sw=2 ts=2 + "== NERDTree let g:NERDTreeWinPos = "right" let g:NERDTreeMinimalUI = 1 let g:NERDTreeWinSize = 24 + "== Mapping let mapleader=";"@@ -130,6 +133,7 @@
" Working with system clipboard noremap <leader>c "+y<CR> noremap <leader>v "+p<CR> + " Terminal tnoremap <Esc> <C-\><C-n>
M
tmux.conf
@@ -2,7 +2,7 @@ ###== General
set -sg escape-time 0 ## Set prefix -set -g prefix C-a +set -g prefix C-f ## Set base index set -g base-index 1
M
vscode/settings.json
@@ -1,18 +1,16 @@
{ - "workbench.colorTheme": "Ayu Dark", - "workbench.iconTheme": "ayu", + "workbench.colorTheme": "One Dark Pro", "editor.wordWrap": "off", "editor.fontSize": 14, "editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", - "workbench.panel.defaultLocation": "left", - "workbench.sideBar.location": "right", "workbench.activityBar.visible": true, "workbench.startupEditor": "newUntitledFile", - "window.menuBarVisibility": "hidden", "editor.formatOnPaste": true, "editor.minimap.enabled": false, "explorer.confirmDelete": false, "explorer.confirmDragAndDrop": false, + "workbench.sideBar.location": "right", + "window.menuBarVisibility": "hidden", "editor.tabCompletion": "on", "editor.tabSize": 4,@@ -28,7 +26,8 @@ "vim.surround": true,
"vim.useSystemClipboard": true, "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}], - "cSpell.userWords": ["getenv", "popen"], + "cSpell.userWords": ["getenv"], + "emmet.includeLanguages": { "javascript": "javascriptreact" },
M
zshrc
@@ -1,11 +1,12 @@
-export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH" +export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$HOME/go/bin:$PATH" export EDITOR="nvim" +export GOPATH="$HOME/go" ### Oh my zsh export OMH="$HOME/.oh-my-zsh" ZSH_THEME="simple" DISABLE_AUTO_TITLE="true" -plugins=(yarn nvm golang) +plugins=(yarn nvm) source $OMH/oh-my-zsh.sh ### Aliases