Skip to content

Commit 4fa0e8a

Browse files
author
Philipp Szechenyi
committed
remove vim.g option again, use lazyvims enable functionality
1 parent ba2c47b commit 4fa0e8a

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

init.lua

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ 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-
11096
-- [[ Setting options ]]
11197
-- See `:help vim.o`
11298
-- NOTE: You can change these options as you wish!
@@ -374,7 +360,15 @@ require('lazy').setup({
374360

375361
{ -- Fuzzy Finder (files, lsp, etc)
376362
'nvim-telescope/telescope.nvim',
377-
enabled = not vim.g.disable_telescope,
363+
-- To disable the default Telescope plugin and replace it with
364+
-- another picker (like snacks), set enabled to false and
365+
-- Enable your replacement picker by requiring it explicitly (e.g., 'kickstart.plugins.snacks')
366+
-- By default, Telescope is included and acts as your picker for everything.
367+
368+
-- Note: When you customize your config for yourself,
369+
-- it’s best to remove the Telescope plugin config entirely
370+
-- instead of just disabling it here, to keep your config clean.
371+
enabled = true,
378372
event = 'VimEnter',
379373
dependencies = {
380374
'nvim-lua/plenary.nvim',

0 commit comments

Comments
 (0)