File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ function M.setup(options)
32
32
end
33
33
end
34
34
35
-
36
35
M .options = vim .tbl_deep_extend (" force" , M .defaults , options or {})
37
36
end
38
37
Original file line number Diff line number Diff line change @@ -5,24 +5,21 @@ local projects = require "dbtpal.projects"
5
5
local config = require " dbtpal.config"
6
6
vim .api .nvim_create_augroup (" dbtPal" , {})
7
7
8
-
9
8
if config .options .custom_dbt_syntax_enabled then
10
9
vim .api .nvim_create_autocmd ({ " BufNewFile" , " BufRead" }, {
11
10
group = " dbtPal" ,
12
11
pattern = { " *.sql" },
13
12
callback = function ()
14
13
vim .bo .filetype = " sql"
15
- vim .cmd ( " runtime syntax/dbt.vim" )
14
+ vim .cmd " runtime syntax/dbt.vim"
16
15
end ,
17
16
desc = " Enable custom dbt syntax on top of SQL" ,
18
17
})
19
18
else
20
19
vim .api .nvim_create_autocmd ({ " BufNewFile" , " BufRead" }, {
21
20
group = " dbtPal" ,
22
21
pattern = { " *.sql" },
23
- callback = function ()
24
- vim .bo .filetype = " sql"
25
- end ,
22
+ callback = function () vim .bo .filetype = " sql" end ,
26
23
desc = " Set filetype to SQL without custom dbt syntax" ,
27
24
})
28
25
end
You can’t perform that action at this time.
0 commit comments