Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 2 additions & 6 deletions lua/astrocommunity/pack/sql/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down