1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| use { "gelguy/wilder.nvim", event = 'CmdlineEnter', config = function() local wilder = require('wilder') wilder.setup({ modes = { ':', '/', '?' }, next_key = 0, previous_key = 0, reject_key = 0, accept_key = 0 }) vim.api.nvim_command("silent! UpdateRemotePlugins") wilder.set_option('pipeline', { wilder.branch( { wilder.check(function (_, x) return vim.fn.empty(x) end), wilder.history(15) }, wilder.cmdline_pipeline({ fuzzy = 1, fuzzy_filter = wilder.vim_fuzzy_filter() }), wilder.search_pipeline() ), }) wilder.set_option('renderer', wilder.popupmenu_renderer( wilder.popupmenu_border_theme({ highlights = { accent = "WilderAccent", selected_accent = "WilderSelectedAccent", }, highlighter = wilder.basic_highlighter(), left = { ' ', wilder.popupmenu_devicons() }, right = { ' ', wilder.popupmenu_scrollbar() }, border = 'rounded', max_height = 17 }) )) vim.api.nvim_set_hl(0, 'WilderAccent', { fg = '#5f87ff' }) vim.api.nvim_set_hl(0, 'WilderSelectedAccent', { fg = '#5f87ff', bg = '#4e4e4e' }) vim.api.nvim_set_keymap('c', '<tab>', [[wilder#in_context() ? wilder#next() : '<tab>']], { noremap = true, expr = true }) vim.api.nvim_set_keymap('c', '<Down>', [[wilder#in_context() ? wilder#next() : '<down>']], { noremap = true, expr = true }) vim.api.nvim_set_keymap('c', '<up>', [[wilder#in_context() ? wilder#previous() : '<up>']], { noremap = true, expr = true }) vim.api.nvim_set_keymap('c', '0', '0', {}) end }
|