bugfix: moved variable initialization

This commit is contained in:
Baipyrus 2024-03-01 09:35:36 +01:00
parent 269cea051e
commit 4d400d1e90

View File

@ -75,6 +75,9 @@ return {
pcall(require('telescope').load_extension, 'fzf') pcall(require('telescope').load_extension, 'fzf')
pcall(require('telescope').load_extension, 'ui-select') pcall(require('telescope').load_extension, 'ui-select')
-- See `:help telescope.builtin`
local builtin = require 'telescope.builtin'
local actions = require 'telescope.actions'
-- Find files parameters -- Find files parameters
local find_command = { local find_command = {
'rg', 'rg',
@ -96,10 +99,6 @@ return {
return true return true
end end
-- See `:help telescope.builtin`
local builtin = require 'telescope.builtin'
local actions = require 'telescope.actions'
vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' }) vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' }) vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
vim.keymap.set('n', '<leader>sf', function() vim.keymap.set('n', '<leader>sf', function()