Skip to content

Commit

Permalink
feat: add conditional loading for Telescope integration
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Sep 2, 2024
1 parent 0950ceb commit 0711081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/dbtpal/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ vim.api.nvim_create_user_command("DbtBuild", function() main.build() end, { narg
vim.api.nvim_set_keymap("n", "<leader>dr", ":lua require('dbtpal').run()<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>dt", ":lua require('dbtpal').test()<CR>", { noremap = true, silent = true })

M.dbt_picker = require("dbtpal.telescope").dbt_picker
local ok, telescope = pcall(require, "telescope")
if ok then M.dbt_picker = require("dbtpal.telescope").dbt_picker end
return M

0 comments on commit 0711081

Please sign in to comment.