Added sqls and ogpt (llama integration) plugins
This commit is contained in:
22
lua/lsp.lua
22
lua/lsp.lua
@@ -94,7 +94,6 @@ require('mason-lspconfig').setup_handlers({
|
||||
-- and will be called for each installed server that doesn't have
|
||||
-- a dedicated handler.
|
||||
function(server_name) -- default handler (optional)
|
||||
|
||||
-- 2024-10-29 Solargraph shall handle ruby AND sonicpi files, add on_init according to documentation
|
||||
if server_name == "solargraph" then
|
||||
lspconfig[server_name].setup {
|
||||
@@ -137,6 +136,27 @@ require('mason-lspconfig').setup_handlers({
|
||||
})
|
||||
|
||||
|
||||
-- setup sqls support
|
||||
lspconfig.sqls.setup {
|
||||
on_attach = function(client, bufnr)
|
||||
require('sqls').on_attach(client, bufnr)
|
||||
end,
|
||||
settings = {
|
||||
sqls = {
|
||||
connections = {
|
||||
-- {
|
||||
-- driver = 'mysql',
|
||||
-- dataSourceName = 'root:root@tcp(127.0.0.1:13306)/world',
|
||||
-- },
|
||||
{
|
||||
driver = 'postgresql',
|
||||
dataSourceName = 'host=127.0.0.1 port=5432 sslmode=disable',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- use on_attach to get lsp related shortcuts
|
||||
vim.g.rustaceanvim = {
|
||||
-- LSP configuration
|
||||
|
||||
Reference in New Issue
Block a user