From 4bbafe1b4fddb653c19bd1ad9837dc91b61344fa Mon Sep 17 00:00:00 2001 From: Andrejus Date: Wed, 15 Jul 2020 18:04:28 +0100 Subject: [PATCH] Build and coc fixes --- files/.config/nvim/plugins.vim | 17 +++++++++++++---- install/16-vim.sh | 4 +--- install/35-kubectl.sh | 2 -- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/files/.config/nvim/plugins.vim b/files/.config/nvim/plugins.vim index d4dbb13..5c62a56 100644 --- a/files/.config/nvim/plugins.vim +++ b/files/.config/nvim/plugins.vim @@ -33,6 +33,8 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } " elm Plug 'elmcast/elm-vim' +" Python +Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'} " DOcumentation GEneraton Plug 'kkoomen/vim-doge' @@ -101,6 +103,9 @@ let g:ale_sign_warning = '\ ' let g:ale_fixers = { \ '*': ['remove_trailing_lines', 'trim_whitespace'], \} +let g:ale_linters = { +\ 'python': ['flake8'] +\} let g:airline_theme='badwolf' @@ -125,6 +130,14 @@ autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif " Allow use of :Prettier command! -nargs=0 Prettier :CocCommand prettier.formatFile +call coc#config('python', { +\ 'jediEnabled': v:false, +\ 'venvPath': '~/.cache/pypoetry/virtualenvs' +\ }) + +" Disable deprecated python2 provider +let g:loaded_python_provider = 0 + " === NeoSnippet === " " Map as shortcut to activate snippet if available imap (neosnippet_expand_or_jump) @@ -137,7 +150,6 @@ let g:neosnippet#snippets_directory='~/.config/nvim/snippets' " Hide conceal markers let g:neosnippet#enable_conceal_markers = 0 - " === Vim airline ==== " " Enable extensions let g:airline_extensions = ['branch', 'hunks', 'coc'] @@ -217,6 +229,3 @@ endfunction if exists('g:loaded_webdevicons') call webdevicons#refresh() endif - -" Disable deprecated python2 provider -let g:loaded_python_provider = 0 diff --git a/install/16-vim.sh b/install/16-vim.sh index 9e68e1f..4784aa1 100755 --- a/install/16-vim.sh +++ b/install/16-vim.sh @@ -10,9 +10,7 @@ if [ ! -f $plug_target ]; then fi echo "Installing neovim support"; -pip3 install neovim -pip3 install pynvim -node --version +export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring && pip3 install --user neovim pynvim 'python-language-server[all]' npm install -g neovim elm-format sudo gem install neovim diff --git a/install/35-kubectl.sh b/install/35-kubectl.sh index 52d59ca..6458fa1 100755 --- a/install/35-kubectl.sh +++ b/install/35-kubectl.sh @@ -14,5 +14,3 @@ if not_installed "kubectl"; then install kubectl refresh fi - -kubectl version