File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ return {
3030 optional = true ,
3131 opts = function (_ , opts )
3232 opts .ensure_installed = require (" astrocore" ).list_insert_unique (opts .ensure_installed , { " sqlfluff" })
33- opts .handlers = {
34- sqlfluff = function ()
35- local null_ls = require " null-ls "
36- null_ls . register ( null_ls . builtins . diagnostics . sqlfluff . with {
37- extra_args = { " --dialect " , " ansi " },
38- })
39- null_ls . register ( null_ls . builtins . formatting . sqlfluff . with {
40- extra_args = { " --dialect " , " ansi " },
41- })
42- end ,
43- }
33+ opts .handlers = opts . handlers or {}
34+
35+ opts . handlers . sqlfluff = function ()
36+ local null_ls = require " null-ls "
37+ null_ls . register ( null_ls . builtins . diagnostics . sqlfluff . with {
38+ extra_args = { " --dialect " , " ansi " },
39+ })
40+ null_ls . register ( null_ls . builtins . formatting . sqlfluff . with {
41+ extra_args = { " --dialect " , " ansi " },
42+ })
43+ end
4444 end ,
4545 },
4646 {
You can’t perform that action at this time.
0 commit comments