diff --git a/lua/dbtpal/config.lua b/lua/dbtpal/config.lua index 043e278..b39759e 100644 --- a/lua/dbtpal/config.lua +++ b/lua/dbtpal/config.lua @@ -32,7 +32,6 @@ function M.setup(options) end end - M.options = vim.tbl_deep_extend("force", M.defaults, options or {}) end diff --git a/lua/dbtpal/files.lua b/lua/dbtpal/files.lua index 060ea3e..18fa537 100644 --- a/lua/dbtpal/files.lua +++ b/lua/dbtpal/files.lua @@ -5,14 +5,13 @@ local projects = require "dbtpal.projects" local config = require "dbtpal.config" vim.api.nvim_create_augroup("dbtPal", {}) - if config.options.custom_dbt_syntax_enabled then vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { group = "dbtPal", pattern = { "*.sql" }, callback = function() vim.bo.filetype = "sql" - vim.cmd("runtime syntax/dbt.vim") + vim.cmd "runtime syntax/dbt.vim" end, desc = "Enable custom dbt syntax on top of SQL", }) @@ -20,9 +19,7 @@ else vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { group = "dbtPal", pattern = { "*.sql" }, - callback = function() - vim.bo.filetype = "sql" - end, + callback = function() vim.bo.filetype = "sql" end, desc = "Set filetype to SQL without custom dbt syntax", }) end