noice.nvim icon indicating copy to clipboard operation
noice.nvim copied to clipboard

bug: Something about split lines in windows doesnt work

Open eyalk11 opened this issue 1 month ago • 0 comments

Did you check docs and existing issues?

  • [X] I have read all the noice.nvim docs
  • [X] I have searched the existing issues of noice.nvim
  • [X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0-dev-3122+ga0a189a8e

Operating system/version

Windows

Describe the bug

Sometimes lines are not splited right. see image image

Steps To Reproduce

use the config below. Mainly after git push using fugative run this:

nmap Zp ZZ:Git push<CR>

Expected Behavior

looks nice

Config

config: 
return {
        "folke/noice.nvim",
        event = "VeryLazy",
        opts = {
            -- add any options here
        },
        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",
        },
        config = function()   
require("noice").setup({
      lsp = {
        -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
        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
        },
      },
      cmdline = { view="cmdline" }, 
      -- 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",
                    any = {
                        { find = "%d+L, %d+B" },
                        { find = "; after #%d+" },
                        { find = "; before #%d+" },
                        { find = "%d fewer lines" },
                        { find = "%d more lines" },
                        { find = "lines --" },
                        { find = "CloseAll" },
                        { find = "Jumping to" },
                        { find = "next remote" },
                        { find = "No Information" },
                        { find = 'Cannot make changes' },
                        { find = 'Autocommands for "neoterm"' },
                        { find = 'Easymotion: Cancelled' }
                    },
                },
                opts = { skip = true },
            },
        }}
    ) end,
    }

eyalk11 avatar May 17 '24 02:05 eyalk11