Skip to content

Commit 6e32c96

Browse files
author
Philipp Szechenyi
committed
add vim.g toggle to disable telescope
1 parent 8ff9a0e commit 6e32c96

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

init.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ vim.g.maplocalleader = ' '
9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
9494
vim.g.have_nerd_font = false
9595

96+
-- To disable the default Telescope plugin and replace it with
97+
-- another picker (like snacks), set this flag to true
98+
-- By default, Telescope is included and acts as your picker for everything.
99+
100+
-- If you want to replace Telescope with another picker:
101+
-- 1. Set `vim.g.disable_telescope = true`
102+
-- 2. Enable your replacement picker by requiring it explicitly (e.g., 'kickstart.plugins.snacks').
103+
104+
-- Note: When you customize your config for yourself,
105+
-- it’s best to remove the Telescope plugin config entirely
106+
-- instead of just disabling it here, to keep your config clean.
107+
108+
vim.g.disable_telescope = false -- set to true to disable Telescope
109+
96110
-- [[ Setting options ]]
97111
-- See `:help vim.o`
98112
-- NOTE: You can change these options as you wish!
@@ -360,6 +374,7 @@ require('lazy').setup({
360374

361375
{ -- Fuzzy Finder (files, lsp, etc)
362376
'nvim-telescope/telescope.nvim',
377+
enabled = not vim.g.disable_telescope,
363378
event = 'VimEnter',
364379
dependencies = {
365380
'nvim-lua/plenary.nvim',

0 commit comments

Comments
 (0)