diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
| commit | e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 (patch) | |
| tree | 697bca3add8a534bd6ed6a82308ef5869cc78393 /.config/nvim/after/ftplugin/python.vim | |
| parent | 2d5fa70da78d05147a4055c51c983b93a4bc32dd (diff) | |
| download | dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.tar.gz dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.zip | |
move to GNU stow approach on managing dotfiles
Diffstat (limited to '.config/nvim/after/ftplugin/python.vim')
| -rw-r--r-- | .config/nvim/after/ftplugin/python.vim | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/.config/nvim/after/ftplugin/python.vim b/.config/nvim/after/ftplugin/python.vim deleted file mode 100644 index ef4d633..0000000 --- a/.config/nvim/after/ftplugin/python.vim +++ /dev/null @@ -1,26 +0,0 @@ -set shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent smartindent - -setlocal path=.,** -setlocal wildignore=*/__pycache__/*,*.pyc - -set include=^\\s*\\(from\\\|import\\)\\s*\\zs\\(\\S\\+\\s\\{-}\\)*\\ze\\($\\\|\ as\\) - -function! PyInclude(fname) - let parts = split(a:fname, ' import ') - let l = parts[0] - if len(parts) > 1 - let r = parts[1] - let joined = join([l, r], '.') - let fp = substitute(joined, '\.', '/', 'g') . '.py' - let found = glob(fp, 1) - if len(found) - return substitute(joined, '\.', '/', 'g') . '.py' - endif - endif - return substitute(joined, '\.', '/', 'g') . '.py' -endfunction - -setlocal includeexpr=PyInclude(v:fname) -setlocal define=^\\s*\\<\\(def\\\|class\\)\\> - -nnoremap <leader>pp :!pycodestyle --first %<CR> |
