From 1925b72e8e63389c34f5a92d40a5bd59f4929f1c Mon Sep 17 00:00:00 2001 From: lelgenio Date: Sat, 7 Nov 2020 02:08:53 -0300 Subject: [PATCH] add pyls with mypy --- dotfiles/nvim.vim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dotfiles/nvim.vim b/dotfiles/nvim.vim index 4eec8e8..6b1d5c6 100644 --- a/dotfiles/nvim.vim +++ b/dotfiles/nvim.vim @@ -400,8 +400,8 @@ hi SpellLocal guisp={{@@ n.yellow @@}} guibg=none nmap K :LspHover " Lint - let g:lsp_diagnostics_echo_cursor = 1 - let g:lsp_virtual_text_enabled = 0 + let g:lsp_diagnostics_echo_cursor = 0 + let g:lsp_virtual_text_enabled = 1 " Colors highlight LspErrorHighlight gui=undercurl guisp={{@@ color.normal.red @@}} @@ -416,6 +416,15 @@ hi SpellLocal guisp={{@@ n.yellow @@}} guibg=none let g:lsp_highlight_references_enabled = 1 highlight LspReference gui=bold guifg={{@@ color.normal.yellow @@}} + " Pyls {{{ + au User lsp_setup call lsp#register_server({ + \ 'name': 'pyls', + \ 'cmd': {server_info->['pyls']}, + \ 'whitelist': ['python'], + \ 'workspace_config': {'pyls': {'plugins': { + \ 'pyls_mypy': {'enabled': v:true}, + \ } } } }) + "}}} " Complete File paths{{{ au User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({ \ 'name': 'file',