sql setup
This commit is contained in:
parent
63433f84d8
commit
d71bdcddd7
2 changed files with 20 additions and 3 deletions
|
@ -1,9 +1,11 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
sql = { "sql_formatter" },
|
||||
-- nix = { "nixpgs_fmt" },
|
||||
formatters = {
|
||||
sqlfluff = {
|
||||
args = { "format", "--dialect=sqlite", "-" },
|
||||
},
|
||||
},
|
||||
},
|
||||
setup = {},
|
||||
}
|
||||
|
|
15
lua/plugins/nvim-lint.lua
Normal file
15
lua/plugins/nvim-lint.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"mfussenegger/nvim-lint",
|
||||
opts = {
|
||||
linters = {
|
||||
sqlfluff = {
|
||||
args = {
|
||||
"lint",
|
||||
"--format=json",
|
||||
-- note: users will have to replace the --dialect argument accordingly
|
||||
"--dialect=sqlite",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue