mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 23:31:32 +01:00
fix vim config for powerline
This commit is contained in:
parent
da99fdd2f7
commit
89daeeb5ee
0
amix_vimrc.patch
Normal file
0
amix_vimrc.patch
Normal file
|
@ -1,7 +1,17 @@
|
|||
python3 from powerline.vim import setup as powerline_setup
|
||||
python3 powerline_setup()
|
||||
python3 del powerline_setup
|
||||
|
||||
let g:Powerline_symbols = 'fancy'
|
||||
|
||||
colorscheme twilight256
|
||||
" colorscheme solarized
|
||||
|
||||
set mouse=a relativenumber number foldmethod=indent nofoldenable "without nofoldenable all folds are closed at startup"
|
||||
set splitbelow splitright
|
||||
set autoread
|
||||
set nowrap
|
||||
set showtabline=2 laststatus=2 " fix statusline
|
||||
|
||||
" ALE configuration
|
||||
let g:ale_fixers = { 'python': ['black'] , 'rust': ['rustfmt']}
|
||||
|
@ -10,7 +20,10 @@ 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"
|
||||
let g:ack_default_options = " --cc --cpp --shell --python --html --js"
|
||||
let g:ale_set_quickfix=1
|
||||
let g:ale_set_loclist=0
|
||||
|
||||
" let g:ale_lint_on_save = 1
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_lint_on_insert_leave = 1
|
||||
|
@ -19,7 +32,14 @@ let g:ale_completion_enabled = 1
|
|||
|
||||
packadd termdebug
|
||||
|
||||
" Fix some gitgutter stuff
|
||||
let g:gitgutter_enabled = 1
|
||||
let g:gitgutter_override_sign_column_highlight = 0
|
||||
highlight clear SignColumn
|
||||
highlight GitGutterAdd ctermfg=2
|
||||
highlight GitGutterChange ctermfg=3
|
||||
highlight GitGutterDelete ctermfg=1
|
||||
highlight GitGutterChangeDelete ctermfg=4
|
||||
|
||||
" Highlight all instances of word under cursor, when idle.
|
||||
" Useful when studying strange source code.
|
||||
|
@ -48,10 +68,18 @@ endfunction
|
|||
let @b = 'A
breakpoint()€ýajkj0'
|
||||
|
||||
let g:ctrlp_custom_ignore = {
|
||||
\ 'dir': 'target$',
|
||||
\ 'dir': '\v(target|build|dist)$',
|
||||
\ }
|
||||
" \ 'file': '\v\.(exe|so|dll)$',
|
||||
" \ 'link': 'some_bad_symbolic_links',
|
||||
|
||||
nnoremap <leader>mk :bel copen<bar>silent (cargo run) !<bar>redraw!<cr>
|
||||
|
||||
autocmd FileType yaml setlocal shiftwidth=2 softtabstop=2 expandtab
|
||||
|
||||
" Your vimrc
|
||||
function! GitStatus()
|
||||
let [a,m,r] = GitGutterGetHunkSummary()
|
||||
return printf('+%d ~%d -%d', a, m, r)
|
||||
endfunction
|
||||
set statusline+=%{GitStatus()}
|
||||
|
|
Loading…
Reference in New Issue
Block a user