vimrc: break out python stuff to its own file

This commit is contained in:
leo 2023-04-26 14:47:19 +02:00
parent 46479405ab
commit f4f95c450b
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
3 changed files with 32 additions and 28 deletions

28
.vim/python.vimrc.vim Normal file

@ -0,0 +1,28 @@
" vim-python
augroup vimrc-python
autocmd!
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8 colorcolumn=79
\ formatoptions+=croq softtabstop=4
\ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
augroup END
" jedi-vim
let g:jedi#popup_on_dot = 0
let g:jedi#goto_assignments_command = '<leader>g'
let g:jedi#goto_definitions_command = '<leader>d'
let g:jedi#documentation_command = 'K'
let g:jedi#usages_command = '<leader>n'
let g:jedi#rename_command = '<leader>r'
let g:jedi#show_call_signatures = '0'
let g:jedi#completions_command = '<C-Space>'
let g:jedi#smart_auto_mappings = 0
" ale
:call extend(g:ale_linters, {
\'python': ['flake8'], })
" vim-airline
let g:airline#extensions#virtualenv#enabled = 1
" Syntax highlight
let python_highlight_all = 1

@ -790,34 +790,7 @@ let g:dhall_format=1
""" python """ python
" vim-python exec 'source ' . escape(expand('~/.vim'),' ') . '/' . 'python.vimrc.vim'
augroup vimrc-python
autocmd!
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8 colorcolumn=79
\ formatoptions+=croq softtabstop=4
\ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
augroup END
" jedi-vim
let g:jedi#popup_on_dot = 0
let g:jedi#goto_assignments_command = '<leader>g'
let g:jedi#goto_definitions_command = '<leader>d'
let g:jedi#documentation_command = 'K'
let g:jedi#usages_command = '<leader>n'
let g:jedi#rename_command = '<leader>r'
let g:jedi#show_call_signatures = '0'
let g:jedi#completions_command = '<C-Space>'
let g:jedi#smart_auto_mappings = 0
" ale
:call extend(g:ale_linters, {
\'python': ['flake8'], })
" vim-airline
let g:airline#extensions#virtualenv#enabled = 1
" Syntax highlight
let python_highlight_all = 1
" partially superseded by jasonccox/vim-wayland-clipboard (for "+) " partially superseded by jasonccox/vim-wayland-clipboard (for "+)

@ -64,6 +64,9 @@ in {
".vim/gotags.vimrc.vim" = { ".vim/gotags.vimrc.vim" = {
source = ./.vim/gotags.vimrc.vim; source = ./.vim/gotags.vimrc.vim;
}; };
".vim/python.vimrc.vim" = {
source = ./.vim/python.vimrc.vim;
};
".config/helix/config.toml" = { ".config/helix/config.toml" = {
source = ./.config/helix/config.toml; source = ./.config/helix/config.toml;