summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/postgres_lsp.lua
blob: a45824a950dbe8e623ee693bfb7d1c46077eb62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'postgres_lsp' },
    filetypes = { 'sql' },
    root_dir = util.root_pattern 'root-file.txt',
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/supabase/postgres_lsp

A Language Server for Postgres
        ]],
    default_config = {
      root_dir = [[util.root_pattern 'root-file.txt']],
    },
  },
}