Skip to content

Commit fea4080

Browse files
committed
show the definition of lua vars used in 'setting it up in neovim' snippet so it'll work for users out of the box.
1 parent 0df473b commit fea4080

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,20 @@ Once the parser is stable, and a robust and scalable data model is implemented,
4444
Add the postgres_lsp executable to your path, and add the following to your config to use it.
4545

4646
```lua
47+
local util = require 'lspconfig.util'
48+
local lspconfig = require 'lspconfig'
49+
4750
require('lspconfig.configs').postgres_lsp = {
4851
default_config = {
4952
name = 'postgres_lsp',
50-
cmd = {'postgres_lsp'},
51-
filetypes = {'sql'},
53+
cmd = { 'postgres_lsp' },
54+
filetypes = { 'sql' },
5255
single_file_support = true,
53-
root_dir = util.root_pattern 'root-file.txt'
54-
}
56+
root_dir = util.root_pattern 'root-file.txt',
57+
},
5558
}
5659

57-
lsp.configure("postgres_lsp", {force_setup = true})
60+
lspconfig.postgres_lsp.setup { force_setup = true }
5861
```
5962

6063
### Building from source

0 commit comments

Comments
 (0)