From 317950a3b6af900031db32b9e9e74723dce59e19 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Tue, 8 Aug 2023 14:02:22 +0200 Subject: Updating folder configuration to use .config --- .vim/after/ftplugin/markdown.vim | 1 - .vim/after/ftplugin/python.vim | 30 ------------------------------ 2 files changed, 31 deletions(-) delete mode 100644 .vim/after/ftplugin/markdown.vim delete mode 100644 .vim/after/ftplugin/python.vim (limited to '.vim/after/ftplugin') diff --git a/.vim/after/ftplugin/markdown.vim b/.vim/after/ftplugin/markdown.vim deleted file mode 100644 index bcda2dd..0000000 --- a/.vim/after/ftplugin/markdown.vim +++ /dev/null @@ -1 +0,0 @@ -setlocal spell diff --git a/.vim/after/ftplugin/python.vim b/.vim/after/ftplugin/python.vim deleted file mode 100644 index 41b1d88..0000000 --- a/.vim/after/ftplugin/python.vim +++ /dev/null @@ -1,30 +0,0 @@ -" Python -let g:lsp_settings = {} -let g:lsp_settings['pylsp-all'] = - \ { - \ 'workspace_config': {'pylsp-all': { - \ 'configurationSources': ['flake8'], - \ 'plugins': { - \ 'pyflakes' : {'enabled': v:false}, - \ 'flake8': {'enabled': v:true}, - \ 'mypy-ls': {'enabled': v:true, 'live_mode': v:false}, - \ 'pylint': {'enabled': v:true}, - \ 'pydocstyle': {'enabled': v:true}, - \ 'pyls_isort': {'enabled': v:true}, - \ 'autopep8': {'enabled': v:false}, - \ 'yapf': {'enabled': v:false}, - \ 'black': {'enabled': v:true}, - \ } - \ }} - \ } - -" Define a custom function that executes :LspDocumentFormat and :!isort -if !exists('*FormatPythonFile') - function! FormatPythonFile() - silent execute '!black %' - silent execute '!isort %' - endfunction -endif -" Remap the custom function to ldf -nnoremap ldf :call FormatPythonFile() - -- cgit v1.2.3