From 704b145bc41fa414476d20b7b0d870d503aa6cad Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 27 Apr 2020 14:25:40 +0200 Subject: [PATCH] vim: add git gutter line highlight toggle L shortcut --- my_configs.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/my_configs.vim b/my_configs.vim index 4228535..8c7db83 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -9,14 +9,17 @@ colorscheme twilight256 set mouse=a relativenumber number foldmethod=indent nofoldenable "without nofoldenable all folds are closed at startup" set ttymouse=xterm2 " fix mouse when used in tmux/byobu https://unix.stackexchange.com/q/50733 +set clipboard=unnamed " always use system clipboard set splitbelow splitright set autoread set nowrap -set showtabline=2 laststatus=2 " fix statusline +set showtabline=2 laststatus=2 " fix statusline (FIX WHAT???) " ALE configuration let g:ale_fixers_aliases = {'vue': ['vue', 'javascript']} +" let g:ale_fixers = { +" \ '*': ['remove_trailing_lines', 'trim_whitespace'], let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], \ 'bash': ['shfmt'], @@ -29,6 +32,8 @@ let g:ale_fixers = { \ "javascript": ["prettier", "eslint"], \ "vue": ["prettier", "eslint"] \} +let g:ale_python_bandit_options = "-c banditrc" + let g:ale_linter_aliases = {'vue': ['vue', 'javascript']} let g:ale_linters = { \ 'python': ['pyls', 'pylint', 'mypy', 'bandit'], @@ -43,7 +48,7 @@ let g:ale_lint_on_insert_leave = 1 let g:ale_fix_on_insert_leave = 1 let g:ale_lint_on_text_changed = 1 -let g:ack_default_options = " --cc --cpp --shell --python --html --js" +let g:ack_default_options = " --cc --cpp --shell --python --html --js --vue" let g:ale_set_quickfix=1 let g:ale_set_loclist=0 @@ -142,6 +147,7 @@ nnoremap G :Git nnoremap P :GPush nnoremap M :Git commit nnoremap u :GitGutterBufferToggle +nnoremap L :GitGutterLineHighlightsToggle " OR map keys to use wrapping. nmap (ale_previous_wrap) @@ -160,3 +166,6 @@ nmap st :ALEGoToDefinitionInTab nmap A :ALEGoToDefinition nmap n :ALEFindReferences nmap r :ALERename + + +set rtp+=/usr/local/opt/fzf