Noice, and rustaceanvim #972
-
Howdy, I am currently encountering an issue seemingly at random where noice will turn rustaceanvim's debug launcher into notifications that only show up after I hit enter, Is this a configuration issue on my end or a not planned feature that would be too difficult to implement? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have this minimal.lua vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
{
"hrsh7th/nvim-cmp",
opts = {},
lazy = false,
},
{
"hrsh7th/cmp-nvim-lsp",
opts = {},
lazy = false,
},
{
"mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
dap.adapters.codelldb = {
type = "server",
port = "${port}",
executable = {
command = os.getenv("CODELLDB_PATH"),
args = { "--port", "${port}" },
},
}
dap.configurations.sh = {
{
type = "bashdb",
request = "launch",
name = "Launch file",
pathBashdb = vim.fn.stdpath("data")
.. "/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb",
pathBashdbLib = vim.fn.stdpath("data")
.. "/mason/packages/bash-debug-adapter/extension/bashdb_dir",
trace = true,
file = "${file}",
program = "${file}",
cwd = "${workspaceFolder}",
pathCat = "cat",
pathBash = "/bin/bash",
pathMkfifo = "mkfifo",
args = {},
env = {},
terminalKind = "integrated",
},
}
dap.configurations.lua = {
{
type = "nlua",
request = "attach",
name = "Attach to running Neovim instance",
},
}
dap.adapters.nlua = function(callback, config)
callback({ type = "server", host = config.host or "127.0.0.1", port = config.port or 8086 }) --Tcausing dap to not load for nvim-lua
end
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
}
end,
},
{
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
{
"MunifTanjim/nui.nvim",
lazy = false,
},
{ "rcarriga/nvim-notify", lazy = false },
},
opts = {
popupmenu = {
enabled = true,
},
routes = {
{
filter = {
event = "msg_showmore",
},
opts = { skip = true },
},
{
filter = {
event = "msg_show",
kind = "",
find = "rust", -- Modify this based on patterns in your Rust popups
},
opts = { skip = true },
},
{
view = "notify",
filter = {
event = "msg_showmode",
},
},
},
lsp = {
hover = {
enabled = true,
},
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
signature = {
enabled = false,
},
},
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 = true, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = true, -- add a border to hover docs and signature help
},
},
},
{
"mrcjkb/rustaceanvim",
version = "^5",
init = function()
-- Configure rustaceanvim here
vim.g.rustaceanvim = {}
end,
lazy = false,
},
},
}) I just dont understand cause noice doesn't overwrite telescope. |
Beta Was this translation helpful? Give feedback.
-
figured out the issue, I dont think that noice.nvim supports dap events so I used telescope-dap, and it turns out that I wasnt loading it consistently. |
Beta Was this translation helpful? Give feedback.
figured out the issue, I dont think that noice.nvim supports dap events so I used telescope-dap, and it turns out that I wasnt loading it consistently.