From 758322bd93e5a849e6443f169bb72b4372d174f0 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Thu, 3 Oct 2024 17:59:08 +0300 Subject: [PATCH] formatting --- lua/crentist/lazy/telescope.lua | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/lua/crentist/lazy/telescope.lua b/lua/crentist/lazy/telescope.lua index 529303a..14d2600 100644 --- a/lua/crentist/lazy/telescope.lua +++ b/lua/crentist/lazy/telescope.lua @@ -1,31 +1,31 @@ return { - "FabianWirth/search.nvim", + 'FabianWirth/search.nvim', dependencies = { - "nvim-lua/plenary.nvim", - "nvim-telescope/telescope.nvim", + 'nvim-lua/plenary.nvim', + 'nvim-telescope/telescope.nvim', }, - version = "0.1.6", + version = '0.1.6', config = function() local telescope = require('telescope') local telescopeConfig = require('telescope.config') local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) } - table.insert(vimgrep_arguments, "--hidden") - table.insert(vimgrep_arguments, "--glob") - table.insert(vimgrep_arguments, "!**/.git/*") + table.insert(vimgrep_arguments, '--hidden') + table.insert(vimgrep_arguments, '--glob') + table.insert(vimgrep_arguments, '!**/.git/*') telescope.setup({ defaults = { vimgrep_arguments = vimgrep_arguments, file_ignore_patterns = { - "node_modules", + 'node_modules', } }, pickers = { find_files = { - find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" }, + find_command = { 'rg', '--files', '--hidden', '--glob', '!**/.git/*' }, } } }) @@ -45,7 +45,7 @@ return { }, append_tabs = { -- append_tabs will add the provided tabs to the default ones { - 'Commits', -- or name = "Commits" + 'Commits', -- or name = 'Commits' builtin.git_commits, -- or tele_func = require('telescope.builtin').git_commits available = function() -- optional return vim.fn.isdirectory('.git') == 1 @@ -59,16 +59,17 @@ return { search.open({ tab_name = 'Buffers' }) end) vim.keymap.set('n', 'pws', function() - local word = vim.fn.expand("") + local word = vim.fn.expand('') builtin.grep_string({ search = word }) end) vim.keymap.set('n', 'pWs', function() - local word = vim.fn.expand("") + local word = vim.fn.expand('') builtin.grep_string({ search = word }) end) vim.keymap.set('n', 'ps', function() - builtin.grep_string({ search = vim.fn.input("Grep > ") }) + builtin.grep_string({ search = vim.fn.input('Grep > ') }) end) vim.keymap.set('n', 'vh', builtin.help_tags, {}) end } +