Skip to content

Commit c44049b

Browse files
committed
update docs
1 parent 40b9bd8 commit c44049b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ require("lazy-lsp").setup {
6868
excluded_servers = {
6969
"ccls", "zk",
7070
},
71-
prefer_local = true, -- Prefer locally installed servers over nix-shell
7271
-- Alternatively specify preferred servers for a filetype (others will be ignored).
7372
preferred_servers = {
74-
haskell = { "hls" },
75-
rust = { "rust_analyzer" },
73+
markdown = {},
74+
python = { "pyright", "ruff_lsp" },
7675
},
76+
prefer_local = true, -- Prefer locally installed servers over nix-shell
7777
-- Default config passed to all servers to specify on_attach callback and other options.
7878
default_config = {
7979
flags = {
@@ -99,6 +99,12 @@ require("lazy-lsp").setup {
9999
}
100100
```
101101

102+
## Curated servers
103+
104+
The philosophy of this plugin is to enable all possible plugins by default to get the highest chance of LSP functionality being available, even at a cost of starting multiple servers for a single language. Any misbehaving or unwanted servers can be excluded one by one.
105+
106+
If this is not what you want, you can give a try to the [curated configuration](servers.md#curated-servers) that enables smaller selection of recommended servers.
107+
102108
## How it works
103109

104110
`lazy-lsp` registers all available configurations from lspconfig to start LSP servers by wrapping the commands in a [nix-shell](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html) environment. The nix-shell prepares the environment by pulling all specified dependencies regardless of what is installed on the host system and avoids packages clashes. The first time a server is run there is a delay until dependencies are downloaded, but on subsequent runs the time to prepare the shell environment is negligeable.

0 commit comments

Comments
 (0)