Skip to content

Commit

Permalink
lsp: pyright remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Lobpreis <[email protected]>
  • Loading branch information
Filip Lobpreis committed Aug 19, 2024
1 parent 731be38 commit 5216de7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lua/usr/lsp/settings/pyright.lua
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 5216de7

Please sign in to comment.