@@ -234,183 +234,6 @@ require('lazy').setup({
234234 --
235235 -- Use the `dependencies` key to specify the dependencies of a particular plugin
236236
237- { -- Fuzzy Finder (files, lsp, etc)
238- ' nvim-telescope/telescope.nvim' ,
239- event = ' VimEnter' ,
240- branch = ' 0.1.x' ,
241- dependencies = {
242- ' nvim-lua/plenary.nvim' ,
243- { -- If encountering errors, see telescope-fzf-native README for installation instructions
244- ' nvim-telescope/telescope-fzf-native.nvim' ,
245-
246- -- `build` is used to run some command when the plugin is installed/updated.
247- -- This is only run then, not every time Neovim starts up.
248- build = ' make' ,
249-
250- -- `cond` is a condition used to determine whether this plugin should be
251- -- installed and loaded.
252- cond = function ()
253- return vim .fn .executable ' make' == 1
254- end ,
255- },
256- { ' nvim-telescope/telescope-ui-select.nvim' },
257-
258- -- Useful for getting pretty icons, but requires a Nerd Font.
259- { ' nvim-tree/nvim-web-devicons' , enabled = vim .g .have_nerd_font },
260- },
261- config = function ()
262- -- Telescope is a fuzzy finder that comes with a lot of different things that
263- -- it can fuzzy find! It's more than just a "file finder", it can search
264- -- many different aspects of Neovim, your workspace, LSP, and more!
265- --
266- -- The easiest way to use Telescope, is to start by doing something like:
267- -- :Telescope help_tags
268- --
269- -- After running this command, a window will open up and you're able to
270- -- type in the prompt window. You'll see a list of `help_tags` options and
271- -- a corresponding preview of the help.
272- --
273- -- Two important keymaps to use while in Telescope are:
274- -- - Insert mode: <c-/>
275- -- - Normal mode: ?
276- --
277- -- This opens a window that shows you all of the keymaps for the current
278- -- Telescope picker. This is really useful to discover what Telescope can
279- -- do as well as how to actually do it!
280-
281- -- [[ Configure Telescope ]]
282- -- See `:help telescope` and `:help telescope.setup()`
283- require (' telescope' ).setup {
284- -- You can put your default mappings / updates / etc. in here
285- -- All the info you're looking for is in `:help telescope.setup()`
286- --
287- defaults = {
288- -- mappings = {
289- -- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
290- -- },
291- -- },
292- layout_strategy = ' horizontal' ,
293- pickers = {
294- current_buffer_fuzzy_find = {
295- theme = ' ivy' ,
296- previewer = false ,
297- },
298- buffers = {
299- sort_lastused = true ,
300- -- theme = "dropdown",
301- theme = ' ivy' ,
302- layout_config = { height = 10 },
303- previewer = false ,
304- mappings = {
305- i = { [' <c-d>' ] = require (' telescope.actions' ).delete_buffer },
306- n = { [' <c-d>' ] = require (' telescope.actions' ).delete_buffer },
307- },
308- },
309- find_files = {
310- theme = ' ivy' ,
311- layout_config = { height = 10 },
312- previewer = false ,
313- },
314- oldfiles = {
315- sort_lastused = true ,
316- theme = ' ivy' ,
317- layout_config = { height = 10 },
318- previewer = false ,
319- },
320- command_history = {
321- sort_lastused = true ,
322- theme = ' ivy' ,
323- layout_config = { height = 10 },
324- previewer = false ,
325- },
326- },
327-
328- --[[
329- layout_config = {
330-
331- width = function(_, max_columns)
332- local percentage = 0.7
333- local max = 70
334- return math.min(math.floor(percentage * max_columns), max)
335- end,
336-
337- height = function(_, _, max_lines)
338- local percentage = 0.7
339- local min = 70
340- return math.max(math.floor(percentage * max_lines), min)
341- end,
342-
343- -- preview_cutoff = 120,
344- },
345- --]]
346- --[[
347- layout_config = {
348- -- defaults = {
349- layout_strategy = 'vertical',
350- height = vim.o.lines, -- maximally available lines
351- width = vim.o.columns, -- maximally available columns
352- prompt_position = 'top',
353- -- preview_height = 0.6, -- 60% of available lines
354- },
355- --]]
356- },
357- extensions = {
358- [' ui-select' ] = {
359- require (' telescope.themes' ).get_dropdown (),
360- },
361- },
362- }
363-
364- -- Enable Telescope extensions if they are installed
365- pcall (require (' telescope' ).load_extension , ' fzf' )
366- pcall (require (' telescope' ).load_extension , ' ui-select' )
367-
368- -- See `:help telescope.builtin`
369- local builtin = require ' telescope.builtin'
370- vim .keymap .set (' n' , ' <leader>sc' , builtin .colorscheme , { desc = ' [S]earch [C]colorscheme' })
371- vim .keymap .set (' n' , ' <leader>sh' , builtin .help_tags , { desc = ' [S]earch [H]elp' })
372- vim .keymap .set (' n' , ' <leader>sk' , builtin .keymaps , { desc = ' [S]earch [K]eymaps' })
373- vim .keymap .set (' n' , ' <leader>sf' , builtin .find_files , { desc = ' [S]earch [F]iles' })
374- vim .keymap .set (' n' , ' <leader>ss' , builtin .builtin , { desc = ' [S]earch [S]elect Telescope' })
375- vim .keymap .set (' n' , ' <leader>sw' , builtin .grep_string , { desc = ' [S]earch current [W]ord' })
376- vim .keymap .set (' n' , ' <leader>sg' , builtin .live_grep , { desc = ' [S]earch by [G]rep' })
377- vim .keymap .set (' n' , ' <leader>sd' , builtin .diagnostics , { desc = ' [S]earch [D]iagnostics' })
378- vim .keymap .set (' n' , ' <leader>sr' , builtin .resume , { desc = ' [S]earch [R]esume' })
379- vim .keymap .set (' n' , ' <leader>s.' , builtin .oldfiles , { desc = ' [S]earch Recent Files ("." for repeat)' })
380-
381- -- Slightly advanced example of overriding default behavior and theme
382- -- vim.keymap.set('n', '<leader>/', builtin.current_buffer_fuzzy_find, { desc = '[/] Fuzzily search in current buffer' })
383- vim .keymap .set (' n' , ' <leader>/' , function ()
384- builtin .current_buffer_fuzzy_find {
385- previewer = false ,
386- }
387- end , { desc = ' [/] Fuzzily search in current buffer' })
388- --[[
389- vim.keymap.set('n', '<leader>/', function()
390- -- You can pass additional configuration to Telescope to change the theme, layout, etc.
391- builtin.current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
392- winblend = 20,
393- previewer = false,
394- })
395- end, { desc = '[/] Fuzzily search in current buffer' })
396- --]]
397-
398- -- It's also possible to pass additional configuration options.
399- -- See `:help telescope.builtin.live_grep()` for information about particular keys
400- vim .keymap .set (' n' , ' <leader><leader>' , function ()
401- builtin .live_grep {
402- grep_open_files = true ,
403- prompt_title = ' Live Grep in Open Files' ,
404- }
405- end , { desc = ' [S]earch [/] in Open Files' })
406-
407- -- Shortcut for searching your Neovim configuration files
408- vim .keymap .set (' n' , ' <leader>sn' , function ()
409- builtin .find_files { cwd = vim .fn .stdpath ' config' }
410- end , { desc = ' [S]earch [N]eovim files' })
411- end ,
412- },
413-
414237 { -- Lush colorscheme helper
415238 ' rktjmp/lush.nvim' ,
416239 -- if you wish to use your own colorscheme:
@@ -430,7 +253,9 @@ require('lazy').setup({
430253 },
431254 },
432255 },
256+
433257 { ' Bilal2453/luvit-meta' , lazy = true },
258+
434259 {
435260 -- Main LSP Configuration
436261 ' neovim/nvim-lspconfig' ,
@@ -919,9 +744,10 @@ require('lazy').setup({
919744 -- require 'plugins.debug',
920745 -- require 'plugins.indent_line',
921746 -- require 'plugins.lint',
922- require ' plugins.autopairs' ,
747+ require ' plugins.telescope' ,
748+ -- require 'plugins.autopairs',
923749 require ' plugins.neo-tree' ,
924- require ' plugins.gitsigns' , -- adds gitsigns recommend keymaps
750+ require ' plugins.gitsigns' ,
925751 require ' plugins.codeium' ,
926752 require ' plugins.chatgpt' ,
927753 require ' plugins.auto-session' ,
0 commit comments