31 lines
823 B
Lua
31 lines
823 B
Lua
#! /usr/bin/env lua
|
|
--
|
|
-- sql.lua
|
|
-- Copyright (C) 2022 veypi <i@veypi.com>
|
|
--
|
|
-- Distributed under terms of the Apache license.
|
|
--
|
|
|
|
|
|
|
|
return {
|
|
settings = {
|
|
sqls = {
|
|
connections = {
|
|
{
|
|
driver = 'mysql',
|
|
dataSourceName = 'root:123456@tcp(127.0.0.1:3306)/test',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
on_attach = function(client)
|
|
-- sqls there seem a bug when format file
|
|
client.resolved_capabilities.document_formatting = false
|
|
client.resolved_capabilities.document_range_formatting = false
|
|
client.server_capabilities.documentFormattingProvider = false
|
|
client.server_capabilities.documentRangeFormattingProvider = false
|
|
-- print(vim.inspect(client))
|
|
end,
|
|
}
|