Skip to content

Commit eab8082

Browse files
committed
style
1 parent e031b58 commit eab8082

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lua/dbtpal/config.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ function M.setup(options)
3232
end
3333
end
3434

35-
3635
M.options = vim.tbl_deep_extend("force", M.defaults, options or {})
3736
end
3837

lua/dbtpal/files.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,21 @@ local projects = require "dbtpal.projects"
55
local config = require "dbtpal.config"
66
vim.api.nvim_create_augroup("dbtPal", {})
77

8-
98
if config.options.custom_dbt_syntax_enabled then
109
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
1110
group = "dbtPal",
1211
pattern = { "*.sql" },
1312
callback = function()
1413
vim.bo.filetype = "sql"
15-
vim.cmd("runtime syntax/dbt.vim")
14+
vim.cmd "runtime syntax/dbt.vim"
1615
end,
1716
desc = "Enable custom dbt syntax on top of SQL",
1817
})
1918
else
2019
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
2120
group = "dbtPal",
2221
pattern = { "*.sql" },
23-
callback = function()
24-
vim.bo.filetype = "sql"
25-
end,
22+
callback = function() vim.bo.filetype = "sql" end,
2623
desc = "Set filetype to SQL without custom dbt syntax",
2724
})
2825
end

0 commit comments

Comments
 (0)