Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104--- @type LazySpec | LazySpec[]return { -- 'folke/noice.nvim', -- Forked to fix some issues 'RayGuo-ergou/noice.nvim', commit = 'd68eb1859c40ed13594779935d0285ec0be0da1c', event = 'VeryLazy', config = function() require('noice').setup { health = { checker = false, }, lsp = { override = { ['vim.lsp.util.convert_input_to_markdown_lines'] = true, ['vim.lsp.util.stylize_markdown'] = true, -- ['cmp.entry.get_documentation'] = true, -- requires hrsh7th/nvim-cmp }, }, -- you can enable a preset for easier configuration presets = { -- bottom_search = true, -- use a classic bottom cmdline for search command_palette = true, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split inc_rename = false, -- enables an input dialog for inc-rename.nvim lsp_doc_border = false, -- add a border to hover docs and signature help }, routes = { { filter = { event = 'msg_show', kind = 'search_count' }, opts = { skip = true }, }, { filter = { event = 'lsp', kind = 'progress' }, opts = { skip = true }, }, { filter = { event = 'lsp' }, opts = { merge = true, replace = true }, }, { -- Hide "-- INSERT --", "-- VISUAL --", etc. filter = { event = 'msg_showmode' }, opts = { skip = true }, }, { filter = { event = 'msg_show', kind = '', find = 'written', }, opts = { skip = true }, }, }, } vim.keymap.set({ 'n', 'i', 's' }, '<c-f>', function() if not require('noice.lsp').scroll(4) then return '<c-f>' end end, { silent = true, expr = true })
vim.keymap.set({ 'n', 'i', 's' }, '<c-b>', function() if not require('noice.lsp').scroll(-4) then return '<c-b>' end end, { silent = true, expr = true }) end, dependencies = { -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries 'MunifTanjim/nui.nvim', -- OPTIONAL: -- `nvim-notify` is only needed, if you want to use the notification view. -- If not available, we use `mini` as the fallback { 'rcarriga/nvim-notify', opts = { fps = 1, timeout = 3000, stages = 'static', merge = true, }, keys = { { '<leader>sm', function() require('telescope').extensions.notify.notify() end, desc = '[S]earch [M]essages and Notifications', }, }, }, }, keys = { { '<c-f>', desc = 'Scroll Documentation', }, { '<c-b>', desc = 'Scroll Documentation reverse', }, },}