let python_highlight_all = 1
syn keyword pythonDecorator True None False self

" Special types
au BufNewFile,BufRead *.jinja set syntax=htmljinja
au BufNewFile,BufRead *.mako set ft=mako

" Folding
map <buffer> F :set foldmethod=indent<cr>

" AsyncRun
map <F9> :AsyncRun -raw python3 %<cr>
map <F10> :AsyncRun python3 %<cr>

" Jedi
let g:jedi#goto_command = "gd"
let g:jedi#goto_assignments_command = "ga"
let g:jedi#usages_command = "<leader>u"

" Linters
let b:ale_linters = ['flake8']

" Autoformat
let g:ale_fixers.python = ['isort', 'black']
let g:ale_python_black_options = '-l 79'

" Disable ALE source in favour of Jedi
call deoplete#custom#option('ignore_sources', {'python': ['ale']})

let python_highlight_all = 1
syn keyword pythonDecorator True None False self

" Special types
au BufNewFile,BufRead *.jinja set syntax=htmljinja
au BufNewFile,BufRead *.mako set ft=mako

" Folding
map <buffer> F :set foldmethod=indent<cr>

" AsyncRun
map <buffer> <F9> :AsyncRun -raw python3 %<cr>
map <buffer> <F10> :AsyncRun python3 %<cr>

" Jedi
let g:jedi#goto_command = "gd"
let g:jedi#goto_assignments_command = "ga"
let g:jedi#usages_command = "<leader>u"

nnoremap <buffer> gsd :sp<CR>:call jedi#goto()<CR>
nnoremap <buffer> gvd :vs<CR>:call jedi#goto()<CR>
nnoremap <buffer> gtd :tabe<CR>:call jedi#goto()<CR>

" Linters
let b:ale_linters = ['flake8']

" Autoformat
let g:ale_fixers.python = ['isort', 'black']
let g:ale_python_black_options = '-l 79'

" Disable ALE source in favour of Jedi
call deoplete#custom#option('ignore_sources', {'python': ['ale']})

Add splits for Jedi goto
[vim] Add splits for Jedi goto

 - Allow jedi#goto to be opened in splits
 - Make python bindings buffer specific

Signed-off-by: Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>

yichenshen/holocron-configs