diff --git a/lua/astrocommunity/pack/sql/README.md b/lua/astrocommunity/pack/sql/README.md index bacb4c76b..bed4d6bca 100644 --- a/lua/astrocommunity/pack/sql/README.md +++ b/lua/astrocommunity/pack/sql/README.md @@ -7,4 +7,4 @@ This plugin pack does the following: - `go` must be in your `PATH` and executable. - formatting is disabled due to https://github.com/sqls-server/sqls/issues/149 - Adds [sqls.nvim](https://github.com/nanotee/sqls.nvim) for language specific tooling -- Adds `sqlfluff` for both formatting and linting (using the ANSI dialect) +- Adds [sqlfluff](https://docs.sqlfluff.com) for both formatting and linting diff --git a/lua/astrocommunity/pack/sql/init.lua b/lua/astrocommunity/pack/sql/init.lua index e578774aa..4d2eddffa 100644 --- a/lua/astrocommunity/pack/sql/init.lua +++ b/lua/astrocommunity/pack/sql/init.lua @@ -34,12 +34,8 @@ return { opts.handlers.sqlfluff = function() local null_ls = require "null-ls" - null_ls.register(null_ls.builtins.diagnostics.sqlfluff.with { - extra_args = { "--dialect", "ansi" }, - }) - null_ls.register(null_ls.builtins.formatting.sqlfluff.with { - extra_args = { "--dialect", "ansi" }, - }) + null_ls.register(null_ls.builtins.diagnostics.sqlfluff) + null_ls.register(null_ls.builtins.formatting.sqlfluff) end end, },