Advertisement
Guest User

lua_pyls

a guest
Nov 16th, 2019
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1.  
  2.     :lua << EOF
  3.     local nvim_lsp = require 'nvim_lsp'
  4.     settings = {
  5.       pyls = {
  6.         enable = true;
  7.         trace = { server = "verbose"; };
  8.         commandPath = "";
  9.         configurationSources = { "pycodestyle" };
  10.         plugins = {
  11.           jedi_completion = { enabled = true; };
  12.           jedi_hover = { enabled = true; };
  13.           jedi_references = { enabled = true; };
  14.           jedi_signature_help = { enabled = true; };
  15.           jedi_symbols = {
  16.             enabled = true;
  17.             all_scopes = true;
  18.           };
  19.           mccabe = {
  20.             enabled = true;
  21.             threshold = 15;
  22.           };
  23.           preload = { enabled = true; };
  24.           pycodestyle = { enabled = true; };
  25.           pydocstyle = {
  26.             enabled = false;
  27.             match = "(?!test_).*\\.py";
  28.             matchDir = "[^\\.].*";
  29.           };
  30.           pyflakes = { enabled = true; };
  31.           rope_completion = { enabled = true; };
  32.           yapf = { enabled = true; };
  33.         };
  34.       };
  35.     };
  36.     nvim_lsp.pyls.setup(settings)
  37.     EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement