diff --git a/lua/usr/lsp/settings/pyright.lua b/lua/usr/lsp/settings/pyright.lua index 2af1865..887bd06 100644 --- a/lua/usr/lsp/settings/pyright.lua +++ b/lua/usr/lsp/settings/pyright.lua @@ -1,18 +1,3 @@ -local util = require 'lspconfig.util' - ---[[ local root_files = { ]] ---[[ '.venv', ]] ---[[ 'main.py', ]] ---[[ 'pyproject.toml', ]] ---[[ 'setup.py', ]] ---[[ 'setup.cfg', ]] ---[[ 'requirements.txt', ]] ---[[ 'Pipfile', ]] ---[[ 'pyrightconfig.json', ]] ---[[ 'run', ]] ---[[ 'compile', ]] ---[[ } ]] - local function getPipenvPath() local env = os.getenv('VIRTUAL_ENV') if env == nil or #env == 0 then @@ -25,9 +10,6 @@ return { settings = { cmd = { vim.fn.stdpath("data") .. "/mason/bin/pyright-langserver", "--stdio" }, filetypes = { "python" }, - --[[ root_dir = function(fname) ]] - --[[ return util.root_pattern(unpack(root_files))(fname) or util.find_git_ancestor(fname) ]] - --[[ end, ]] python = { disableLanguageServices = false, disableOrganizeImports = false,