Skip to content

Commit e86dde8

Browse files
committed
fix(sql): simplify sqls.nvim setup for Neovim >=0.11 compatibility
1 parent 50724d1 commit e86dde8

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

lua/astrocommunity/pack/sql/init.lua

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ return {
2323
opts = function(_, opts)
2424
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "sqlfluff" })
2525
opts.handlers = opts.handlers or {}
26-
2726
opts.handlers.sqlfluff = function()
2827
local null_ls = require "null-ls"
2928
null_ls.register(null_ls.builtins.diagnostics.sqlfluff)
@@ -75,24 +74,5 @@ return {
7574
},
7675
},
7776
},
78-
{
79-
"nanotee/sqls.nvim",
80-
dependencies = {
81-
"AstroNvim/astrocore",
82-
opts = {
83-
autocmds = {
84-
sqls_attach = {
85-
{
86-
event = "LspAttach",
87-
desc = "Load sqls.nvim with sqls",
88-
callback = function(args)
89-
local client = assert(vim.lsp.get_client_by_id(args.data.client_id))
90-
if client.name == "sqls" then require("sqls").on_attach(client, args.buf) end
91-
end,
92-
},
93-
},
94-
},
95-
},
96-
},
97-
},
77+
{ "nanotee/sqls.nvim" },
9878
}

0 commit comments

Comments
 (0)