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/index.md
+59-4
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,22 @@ Our current focus is on refining and enhancing these core features while buildin
25
25
26
26
## Installation
27
27
28
-
> [!NOTE]
29
-
> We will update this section once we have published the binaries.
28
+
To install Postgres Tools, grab the executable for your platform from the [latest CLI release](https://github.com/supabase-community/postgres_lsp/releases/latest) on GitHub and give it execution permission.
To use Postgres Tools in your favorite IDE, we recommend [installing an editor plugin](#install-an-editor-plugin).
30
44
31
45
## Configuration
32
46
@@ -88,9 +102,50 @@ Make sure to check out the other options. We will provide guides for specific us
88
102
89
103
We recommend installing an editor plugin to get the most out of Postgres Language Tools.
90
104
91
-
> [!NOTE]
92
-
> We will update this section once we have published the binaries.
105
+
### VSCode
106
+
107
+
TODO
108
+
109
+
### Neovim
110
+
111
+
You will have to install `nvim-lspconfig`, and follow the [instructions](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#postgres_lsp).
112
+
113
+
114
+
### Other
115
+
116
+
Postgres Tools has first-class LSP support. If your editor does implement LSP, then the integration of Postgres Tools should be seamless.
117
+
118
+
#### Use the LSP Proxy
119
+
120
+
Postgres Tools has a command called `lsp-proxy`. When executed, two processes will spawn:
121
+
- a daemon that does execute the requested operations;
122
+
- a server that functions as a proxy between the requests of the client - the editor - and the server - the daemon;
123
+
If your editor is able to interact with a server and send [JSON-RPC](https://www.jsonrpc.org) requests, you only need to configure the editor to run that command.
124
+
125
+
#### Use the daemon with the binary
126
+
Using the binary via CLI is very efficient, although you won’t be able to provide logs to your users. The CLI allows you to bootstrap a daemon and then use the CLI commands through the daemon itself.
127
+
In order to do so, you first need to start a daemon process with the start command:
128
+
129
+
```sh
130
+
postgrestools start
131
+
```
132
+
133
+
Then, every command needs to add the `--use-server` options, e.g.:
The daemon saves logs in your file system. Logs are stored in a folder called `pgt-logs`. The path of this folder changes based on your operative system:
0 commit comments