Added sqls and ogpt (llama integration) plugins

This commit is contained in:
2025-03-16 21:52:57 +01:00
parent f30726c08b
commit 3f6c8f995b
2 changed files with 167 additions and 1 deletions

View File

@@ -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