Comments (10)
Yes! I actually submitted a PR there that got merged so I can integrate :)
from noice.nvim.
@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:
from noice.nvim.
@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.
relevant: vigoux/notifier.nvim#19
from noice.nvim.
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.
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.
Pity. Looking forward to the mini
LSP progress component then!
from noice.nvim.
I saw the commit, but I took "disabled and non-documented" seriously ;)
Thanks! I love how configurable everything is.
from noice.nvim.
@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.
Fantastic!
Thank you for your excellent work! Cheers
from noice.nvim.
Related Issues (20)
- bug: `E565: Not allowed to change text or change window` error when using with clever-f.vim HOT 3
- bug: Cursor disappears after loading a session HOT 2
- bug: mini.jump `t` doesn't work if the following key comes too late when using with noice.nvim HOT 6
- Configuration Issue: Not able to suppress 'No information available' notification HOT 1
- bug: Error `Invalid window id: ...` when I close the LSP hover window with the new `fclose!` command. HOT 4
- bug: no notification handler registered for "Dir" / "GUI" HOT 5
- bug: inserting an automatic <CR> after easymotion HOT 1
- bug: `cmdline.view` overwrites `cmdline.format.search_down.view` ~50% of the time. HOT 5
- bug: using classic mode for cmdline still have completion window floating middle of the screen HOT 2
- feature: priority of lsp progress HOT 1
- bug: Truncated prompts when using Telescope actions HOT 1
- bug: hide scroll messages HOT 1
- bug: vim.fn.input() now goes to cmdline_input, and breaks HOT 2
- bug: noice.nvim is causing pyright lsp hover docs to show up and I want to disable it
- bug: lag when quitting nvim HOT 9
- bug: Borderless cmdline popups HOT 4
- bug: When run within Zellij, when multiples message popups are displayed, cursor "glitches" into popup HOT 1
- bug: Getting E445: Other window contains changes while closing diffview HOT 2
- Documentation for modifying appearance of cmdline_popup dropdown
- bug: Invalid 'end_col': out of range HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noice.nvim.