From 5216de7b806a09fc8c52352ea1a25ee1819d4695 Mon Sep 17 00:00:00 2001 From: Filip Lobpreis Date: Mon, 19 Aug 2024 21:35:04 +0200 Subject: [PATCH] lsp: pyright remove unused code Signed-off-by: Filip Lobpreis --- lua/usr/lsp/settings/pyright.lua | 18 ------------------ 1 file changed, 18 deletions(-) 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,