Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lsp-bridge in Emacs doc #153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ Add the following elisp code to your configuration. (using `use-package`)
There are various other configurations to tweak. Refer to the
[specific manual page](https://emacs-lsp.github.io/lsp-mode/page/lsp-nix-nil/) for more details.

### Emacs with [lsp-bridge](https://github.com/manateelazycat/lsp-bridge/)

Add the following elisp code to your configuration.

```elisp
(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)
:config
(setq lsp-bridge-nix-lsp-server "nil"))
```

### Emacs with [eglot](https://github.com/joaotavora/eglot)

Add the following elisp code to your configuration. (using `use-package`)
Expand All @@ -131,7 +146,6 @@ Add the following elisp code to your configuration. (using `use-package`)
:hook
(nix-mode . eglot-ensure))
```

### VSCode/VSCodium with [Nix IDE](https://github.com/nix-community/vscode-nix-ide)

Modify the extension's settings in your `settings.json`.
Expand Down