1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:20:06 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/pylyzer.lua

34 lines
742 B
Lua
Vendored

local util = require('lspconfig').util
return {
default_config = {
cmd = { 'pylyzer', '--server' },
filetypes = { 'python' },
root_dir = function(fname)
local root_files = {
'setup.py',
'tox.ini',
'requirements.txt',
'Pipfile',
'pyproject.toml',
}
return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname)
end,
settings = {
python = {
diagnostics = true,
inlayHints = true,
smartCompletion = true,
checkOnType = false,
},
},
},
docs = {
description = [[
https://github.com/mtshiba/pylyzer
`pylyzer`, a fast static code analyzer & language server for Python.
]],
},
}