Browse Source

Add work related settings

master
Marcel Schneider 2 years ago
parent
commit
2cc2ade083
No known key found for this signature in database GPG Key ID: 86027C59718EEE88
  1. 5
      init.vim
  2. 2
      tmux/tmux.conf.symlink
  3. 18
      vim/ftplugin/javascript.vim
  4. 2
      vim/ftplugin/python.vim
  5. 12
      zsh/aliases.zsh

5
init.vim

@ -9,6 +9,7 @@ endif
call plug#begin()
Plug 'tpope/vim-fugitive' " Git integration
Plug 'tpope/vim-rhubarb' " Github integration
Plug 'tpope/vim-sensible' " Defaults everyone can agree on
Plug 'tpope/vim-surround' " better handling of surrounding markers
Plug 'tpope/vim-ragtag' " Enhancement of surround for html
@ -45,6 +46,8 @@ Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' } " improve sort performance
Plug 'pwntester/octo.nvim'
"Plug 'github/copilot.vim'
" {{{ CocPlugins
Plug 'neoclide/coc-json', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-snippets', { 'do': 'yarn install --frozen-lockfile' }
@ -60,6 +63,7 @@ Plug 'neoclide/coc-yaml', { 'do': 'yarn install --frozen-lockfile' }
Plug 'fannheyward/coc-sql', { 'do': 'yarn install --frozen-lockfile' }
Plug 'fannheyward/coc-markdownlint', { 'do': 'yarn install --frozen-lockfile' }
Plug 'fannheyward/coc-pyright', { 'for': 'python', 'do': 'yarn install --frozen-lockfile' }
Plug 'josa42/coc-sh', { 'do': 'yarn install --frozen-lockfile' }
" }}}
" html / templates{{{
@ -505,5 +509,6 @@ let g:doge_javascript_settings = {
\ 'omit_redundant_param_types': 1,
\}
let g:doge_doc_standard_python = 'google'
let g:doge_mapping_comment_jump_forward = '<c-k>'
"}}}

2
tmux/tmux.conf.symlink

@ -106,4 +106,4 @@ bind p paste-buffer
##############################
source ~/.dotfiles/tmux/theme.sh
run-shell ~/git/build/tmux-yank/yank.tmux

18
vim/ftplugin/javascript.vim

@ -10,15 +10,15 @@ let b:ale_fix_on_save = 1
let b:ale_javascript_prettier_use_local_config = 1
let b:ale_typescript_prettier_use_local_config = 1
" config for local eslint
g:ale_javascript_eslint_use_global = 1
g:ale_javascript_eslint_executable = 'yarn'
g:ale_javascript_eslint_options = 'run eslint'
g:ale_typescript_eslint_use_global = 1
g:ale_typescript_eslint_executable = 'yarn'
g:ale_typescript_eslint_options = 'run eslint'
g:ale_json_eslint_use_global = 1
g:ale_json_eslint_executable = 'yarn'
g:ale_json_eslint_options = 'run eslint'
let g:ale_javascript_eslint_use_global = 1
let g:ale_javascript_eslint_executable = 'yarn'
let g:ale_javascript_eslint_options = 'run eslint'
let g:ale_typescript_eslint_use_global = 1
let g:ale_typescript_eslint_executable = 'yarn'
let g:ale_typescript_eslint_options = 'run eslint'
let g:ale_json_eslint_use_global = 1
let g:ale_json_eslint_executable = 'yarn'
let g:ale_json_eslint_options = 'run eslint'
let g:jsdoc_formatter = 'tsdoc'
let g:jsdoc_lehre_path = '/home/schneider/.yarn/bin/lehre'

2
vim/ftplugin/python.vim

@ -10,6 +10,8 @@ let g:ale_fixers['python'] = ['black']
let g:ale_fix_on_save = 1
let g:pymode_run_bind = '<F5>'
let g:pydocstring_formatter = 'google'
let g:ale_virtualenv_dir_names = []
let b:ale_python_pylint_executable = 'python $(which pylint)'
" Make a f-string from normal string
nmap <F8> F"if<ESC>A

12
zsh/aliases.zsh

@ -1,6 +1,6 @@
# in case its not already thera
alias la='ls -la'
alias sagu='sudo apt-fast update && sudo apt-fast dist-upgrade'
alias sagu='sudo apt-fast update && sudo apt-fast dist-upgrade && flatpak update'
alias sagi='sudo apt-fast install '
alias notes='vim "+:NV"'
alias slog='sudo less /var/log/syslog'
@ -63,3 +63,13 @@ alias standup='cd /home/schneider/git/ && git standup -m 8 -d 7 -s'
alias fuu='fuck'
alias jswatch='/home/schneider/.yarn/bin/watch '
function ls3() {
AWS_ACCESS_KEY_ID="S3RVER" AWS_SECRET_ACCESS_KEY="S3RVER" aws --endpoint-url http://0.0.0.0:4568 s3 $@
}
alias backend='aws --profile backend'
alias madness='docker run --rm -it -v $PWD:/docs -p 3005:3000 dannyben/madness'
# {{{ yarn
alias yrb='yarn run build'
#}}}
Loading…
Cancel
Save