mirror of
https://github.com/oxalica/nil.git
synced 2025-10-06 00:32:51 +02:00
Add lsp-bridge in Emacs doc
Hi I'm author of lsp-bridge https://github.com/manateelazycat/lsp-bridge/ I have attach patch to support nil in lsp-bridge, thanks for merge. ;)
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
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.
|
[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)
|
### Emacs with [eglot](https://github.com/joaotavora/eglot)
|
||||||
|
|
||||||
Add the following elisp code to your configuration. (using `use-package`)
|
Add the following elisp code to your configuration. (using `use-package`)
|
||||||
@@ -131,7 +146,6 @@ Add the following elisp code to your configuration. (using `use-package`)
|
|||||||
:hook
|
:hook
|
||||||
(nix-mode . eglot-ensure))
|
(nix-mode . eglot-ensure))
|
||||||
```
|
```
|
||||||
|
|
||||||
### VSCode/VSCodium with [Nix IDE](https://github.com/nix-community/vscode-nix-ide)
|
### VSCode/VSCodium with [Nix IDE](https://github.com/nix-community/vscode-nix-ide)
|
||||||
|
|
||||||
Modify the extension's settings in your `settings.json`.
|
Modify the extension's settings in your `settings.json`.
|
||||||
|
Reference in New Issue
Block a user