Installation
-
Install Emacs 28 or higher version
yanboyang713@Meta-Scientific-Linux ~ % emacs --version GNU Emacs 29.1 Copyright (C) 2023 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.
-
Install Python dependencies: pip3 install epc orjson sexpdata six setuptools paramiko rapidfuzz (orjson is optional, orjson is based on Rust, providing faster JSON parsing performance)
paru -S python-epc python-orjson python-sexpdata python-six python-setuptools python-paramiko python-rapidfuzz
-
Install Elisp dependencies: markdown-mode, yasnippet
-
Download this repository using git clone, and replace the load-path path in the configuration below.
-
Add the following code to your configuration file ~/.emacs:
(add-to-list 'load-path "<path-to-lsp-bridge>") (require 'yasnippet) (yas-global-mode 1) (require 'lsp-bridge) (global-lsp-bridge-mode)
If you are using straight to install, you should use the following configuration to install:
(use-package lsp-bridge
:straight '(lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge"
:files (:defaults "*.el" "*.py" "acm" "core" "langserver" "multiserver" "resources")
:build (:not compile))
:init
(global-lsp-bridge-mode))
Configure
acm-enable-copilot: Enable copilot support, firstly, purchase the Copilot service by https://github.com/features/copilot , when enable need install agent first
NOTE: using nvm install node(npm)
npm install -g copilot-node-server
, then execute lsp-bridge-copilot-login, lsp-bridge will display User Code in the Minibuffer, copy the User Code to the opened Copilot page to complete the login.