From 4d400d1e90d94c82b42093bbb01390a78e0313dd Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 1 Mar 2024 09:35:36 +0100 Subject: [PATCH] bugfix: moved variable initialization --- lua/kickstart/plugins/telescope.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/kickstart/plugins/telescope.lua b/lua/kickstart/plugins/telescope.lua index 62005ac..8925e70 100644 --- a/lua/kickstart/plugins/telescope.lua +++ b/lua/kickstart/plugins/telescope.lua @@ -75,6 +75,9 @@ return { pcall(require('telescope').load_extension, 'fzf') pcall(require('telescope').load_extension, 'ui-select') + -- See `:help telescope.builtin` + local builtin = require 'telescope.builtin' + local actions = require 'telescope.actions' -- Find files parameters local find_command = { 'rg', @@ -96,10 +99,6 @@ return { return true end - -- See `:help telescope.builtin` - local builtin = require 'telescope.builtin' - local actions = require 'telescope.actions' - vim.keymap.set('n', 'sh', builtin.help_tags, { desc = '[S]earch [H]elp' }) vim.keymap.set('n', 'sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' }) vim.keymap.set('n', 'sf', function()