Skip to content

Commit ea1079d

Browse files
committed
fix: only set noice buffer names if debug. Fixes #197
1 parent 8d7a63c commit ea1079d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/noice/util/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
local require = require("noice.util.lazy")
22

33
local Hacks = require("noice.util.hacks")
4+
local Config = require("noice.config")
45

56
local M = {}
67

@@ -49,7 +50,7 @@ function M.tag(buf, tag)
4950
vim.api.nvim_buf_set_option(buf, "filetype", "noice")
5051
end
5152

52-
if vim.api.nvim_buf_get_name(buf) == "" then
53+
if Config.options.debug and vim.api.nvim_buf_get_name(buf) == "" then
5354
local path = "noice://" .. buf .. "/" .. tag
5455
local params = {}
5556
if ft ~= "" and ft ~= "noice" then

0 commit comments

Comments
 (0)