GithubHelp home page GithubHelp logo

Support vigoux/notifier.nvim about noice.nvim HOT 10 CLOSED

folke avatar folke commented on September 18, 2024 1
Support vigoux/notifier.nvim

from noice.nvim.

Comments (10)

folke avatar folke commented on September 18, 2024 6

Yes! I actually submitted a PR there that got merged so I can integrate :)

from noice.nvim.

folke avatar folke commented on September 18, 2024 1

@clason it already exists, I just didn't find the time to document it.

By default it's a bit flashy though, with spinners AND a progress bar 😄

recording.mp4

But you can easily customize the format like this:

noice.setup({
  debug = false,
  lsp_progress = {
    enabled = true,
    format = {
      { "{data.progress.message} " },
      "({data.progress.percentage}%) ",
      { "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" },
      { "{data.progress.client} ", hl_group = "NoiceLspProgressClient" },
    },
  },
})

That config is a bit less flashy:
image

from noice.nvim.

folke avatar folke commented on September 18, 2024 1

@ranjithshegde yep, you're right. Can be made optional. I'll make some changes tomorrow, so one can specify the default backend. That way you dont need to override all the existing routes.

from noice.nvim.

folke avatar folke commented on September 18, 2024

relevant: vigoux/notifier.nvim#19

from noice.nvim.

folke avatar folke commented on September 18, 2024

I'm still planning to integarte notifer.nvim, but I've also added a new mini view to Noice. I basically had all the components already to make something like this :)

See https://github.com/folke/noice.nvim/blob/main/lua/noice/view/mini.lua

Replace routes with anything that you want. Like for any route, view, you can use custom formatters and position the lines anywhere you would like. Bottom-right is the default.

Example:

  local noice = require("noice")
  noice.setup({
    routes = {
      {
        view = "mini",
        filter = {
          any = {
            { event = "msg_show", kind = { "", "echo" } },
          },
        },
      },
    },
  })

from noice.nvim.

folke avatar folke commented on September 18, 2024

Integration doesn't seem possible for now. If that would change in the future, I can revsist this or someone else can submit a PR.

from noice.nvim.

clason avatar clason commented on September 18, 2024

Pity. Looking forward to the mini LSP progress component then!

from noice.nvim.

clason avatar clason commented on September 18, 2024

I saw the commit, but I took "disabled and non-documented" seriously ;)

Thanks! I love how configurable everything is.

from noice.nvim.

ranjithshegde avatar ranjithshegde commented on September 18, 2024

@folke With the mini module in place, and the example above, is nvim-notify still a hard dependency? Or can it be optional?

from noice.nvim.

ranjithshegde avatar ranjithshegde commented on September 18, 2024

Fantastic!
Thank you for your excellent work! Cheers

from noice.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.