feature: NoiceViewOptions for config.lsp.progress #490
Unanswered
boltlessengineer
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I have been digging to try to find the answer to this question too. The solution lies in the views configuration. Here is the solution to your problem 😄 {
"folke/noice.nvim",
opts = {
views = {
notify = {
replace = true, -- HERE
},
},
lsp = {
progress = {
enabled = true,
format = "lsp_progress",
format_done = "lsp_progress_done",
-- throttle = 1000 / 30,
view = "notify",
},
},
},
} You have to update the notify view to replace. And you get something like that! (Here is my fill noice plugin spec if needed) {
"folke/noice.nvim",
event = "VeryLazy",
opts = {
-- cmdline = {
-- title = '',
-- -- view = 'cmdline', -- change to classic
-- },
messages = {
enabled = false
},
views = {
notify = {
replace = true,
},
},
lsp = {
progress = {
enabled = true,
format = "lsp_progress",
format_done = "lsp_progress_done",
-- throttle = 1000 / 30,
view = "notify",
},
-- 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,
},
-- hover = {enabled = false },
-- signature = { enabled = false },
},
routes = {
{
filter = {
event = "msg_show",
kind = "search_count",
},
opts = { skip = true },
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = false, -- 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 = true, -- add a border to hover docs and signature help
},
},
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(_, opts)
require("noice").setup(opts)
end,
}, Let me know if you have issues. :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Did you check the docs?
Is your feature request related to a problem? Please describe.
Currently the only way to change position of lsp progress messages (default on bottom right) is just changing default
mini
backend's settings fromconfig.views.mini
. But this also affects other messages usingmini
as backend.Describe the solution you'd like
It would be great if we have
config.lsp.progess.opts
option to configuremini
only for lsp progress.Describe alternatives you've considered
I have to use fidget.nvim instead of Noice's feature.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions