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: docs/guides/ide_setup.md
+55-1Lines changed: 55 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,61 @@ The language server is available on the [VSCode Marketplace](https://marketplace
8
8
9
9
## Neovim
10
10
11
-
You will have to install `nvim-lspconfig`, and follow the [instructions](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#postgres_lsp).
11
+
### Installation via Mason (Recommended)
12
+
13
+
The easiest way to install the language server is via [Mason](https://github.com/williamboman/mason.nvim):
14
+
15
+
```vim
16
+
:MasonInstall postgres-language-server
17
+
```
18
+
19
+
Then configure `nvim-lspconfig` to use it:
20
+
21
+
```lua
22
+
require('lspconfig').postgres_lsp.setup{}
23
+
```
24
+
25
+
### Manual Installation
26
+
27
+
1. Download the binary for your platform from the [releases page](https://github.com/supabase-community/postgres-language-server/releases)
28
+
2. Place it in your `$PATH`
29
+
3. Configure `nvim-lspconfig`:
30
+
31
+
```lua
32
+
require('lspconfig').postgres_lsp.setup{
33
+
cmd= { "postgres-language-server", "lsp-proxy" },
34
+
}
35
+
```
36
+
37
+
For more details, see the [nvim-lspconfig documentation](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#postgres_lsp).
38
+
39
+
### Troubleshooting
40
+
41
+
If the language server isn't working:
42
+
43
+
1.**Check that the binary is executable:**
44
+
```bash
45
+
which postgres-language-server
46
+
postgres-language-server --version
47
+
```
48
+
49
+
2.**Check LSP status in Neovim:**
50
+
```vim
51
+
:LspInfo
52
+
```
53
+
This shows if the server is attached to your buffer.
0 commit comments