Skip to content

Commit

Permalink
Merge pull request #1101 from zonuexe/feature/support-pipx
Browse files Browse the repository at this point in the history
Support "pipx run" command as lsp-bridge-python-command
  • Loading branch information
manateelazycat authored Nov 6, 2024
2 parents 061a504 + 1990bb8 commit c4520d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,8 @@ So we build this macro to restore postion after code format."
;; start epc server and set `lsp-bridge-server-port'
(lsp-bridge--start-epc-server)
(let* ((lsp-bridge-args (append
(when (equal lsp-bridge-python-command "pipx")
(list "run"))
(list lsp-bridge-python-file)
(list (number-to-string lsp-bridge-server-port))
(when lsp-bridge-enable-profile
Expand Down
13 changes: 13 additions & 0 deletions lsp_bridge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# /// script
# dependencies = [
# "epc",
# "orjson",
# "sexpdata",
# "six",
# "setuptools",
# "paramiko",
# "rapidfuzz",
# "watchdog",
# ]
# ///

# Copyright (C) 2022 Andy Stewart
#
# Author: Andy Stewart <[email protected]>
Expand Down

0 comments on commit c4520d6

Please sign in to comment.