Skip to content

Commit 59fe0ec

Browse files
fixed layout strategy
1 parent 2a93b41 commit 59fe0ec

File tree

1 file changed

+8
-74
lines changed

1 file changed

+8
-74
lines changed

init.lua

Lines changed: 8 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,14 @@ require('lazy').setup({
325325
{ 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },
326326
},
327327
config = function()
328+
329+
330+
require('telescope').setup {
331+
defaults = {
332+
layout_strategy = 'flex',
333+
}
334+
}
335+
328336
-- Telescope is a fuzzy finder that comes with a lot of different things that
329337
-- it can fuzzy find! It's more than just a "file finder", it can search
330338
-- many different aspects of Neovim, your workspace, LSP, and more!
@@ -346,76 +354,6 @@ require('lazy').setup({
346354

347355
-- [[ Configure Telescope ]]
348356
-- See `:help telescope` and `:help telescope.setup()`
349-
require('telescope').setup {
350-
-- You can put your default mappings / updates / etc. in here
351-
-- All the info you're looking for is in `:help telescope.setup()`
352-
--
353-
-- defaults = {
354-
-- mappings = {
355-
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
356-
-- },
357-
-- },
358-
-- set all pickers to dropdown
359-
pickers = {
360-
find_files = {
361-
theme = 'dropdown',
362-
},
363-
live_grep = {
364-
theme = 'dropdown',
365-
},
366-
grep_string = {
367-
theme = 'dropdown',
368-
},
369-
file_browser = {
370-
theme = 'dropdown',
371-
},
372-
old_files = {
373-
theme = 'dropdown',
374-
},
375-
help_tags = {
376-
theme = 'dropdown',
377-
},
378-
keymaps = {
379-
theme = 'dropdown',
380-
},
381-
builtin = {
382-
theme = 'dropdown',
383-
},
384-
lsp_references = {
385-
theme = 'dropdown',
386-
},
387-
lsp_definitions = {
388-
theme = 'dropdown',
389-
},
390-
lsp_implementations = {
391-
theme = 'dropdown',
392-
},
393-
lsp_code_actions = {
394-
theme = 'dropdown',
395-
},
396-
lsp_document_diagnostics = {
397-
theme = 'dropdown',
398-
},
399-
lsp_workspace_diagnostics = {
400-
theme = 'dropdown',
401-
},
402-
lsp_document_symbols = {
403-
theme = 'dropdown',
404-
},
405-
lsp_workspace_symbols = {
406-
theme = 'dropdown',
407-
},
408-
lsp_dynamic_workspace_symbols = {
409-
theme = 'dropdown',
410-
},
411-
},
412-
extensions = {
413-
['ui-select'] = {
414-
require('telescope.themes').get_dropdown(),
415-
},
416-
},
417-
}
418-
419357
-- Enable Telescope extensions if they are installed
420358
pcall(require('telescope').load_extension, 'fzf')
421359
pcall(require('telescope').load_extension, 'ui-select')
@@ -436,10 +374,6 @@ require('lazy').setup({
436374
-- Slightly advanced example of overriding default behavior and theme
437375
vim.keymap.set('n', '<leader>/', function()
438376
-- You can pass additional configuration to Telescope to change the theme, layout, etc.
439-
builtin.current_buffer_fuzzy_find(require('telescope.themes').get_dropdown {
440-
winblend = 10,
441-
previewer = false,
442-
})
443377
end, { desc = '[/] Fuzzily search in current buffer' })
444378

445379
-- It's also possible to pass additional configuration options.

0 commit comments

Comments
 (0)