You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -68,12 +68,12 @@ require("lazy-lsp").setup {
68
68
excluded_servers= {
69
69
"ccls", "zk",
70
70
},
71
-
prefer_local=true, -- Prefer locally installed servers over nix-shell
72
71
-- Alternatively specify preferred servers for a filetype (others will be ignored).
73
72
preferred_servers= {
74
-
haskell= {"hls" },
75
-
rust= { "rust_analyzer" },
73
+
markdown= {},
74
+
python= { "pyright", "ruff_lsp" },
76
75
},
76
+
prefer_local=true, -- Prefer locally installed servers over nix-shell
77
77
-- Default config passed to all servers to specify on_attach callback and other options.
78
78
default_config= {
79
79
flags= {
@@ -99,6 +99,12 @@ require("lazy-lsp").setup {
99
99
}
100
100
```
101
101
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
+
102
108
## How it works
103
109
104
110
`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