Skip to content

Commit

Permalink
fix: only set noice buffer names if debug. Fixes #197
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 7, 2022
1 parent 8d7a63c commit ea1079d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/noice/util/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local require = require("noice.util.lazy")

local Hacks = require("noice.util.hacks")
local Config = require("noice.config")

local M = {}

Expand Down Expand Up @@ -49,7 +50,7 @@ function M.tag(buf, tag)
vim.api.nvim_buf_set_option(buf, "filetype", "noice")
end

if vim.api.nvim_buf_get_name(buf) == "" then
if Config.options.debug and vim.api.nvim_buf_get_name(buf) == "" then
local path = "noice://" .. buf .. "/" .. tag
local params = {}
if ft ~= "" and ft ~= "noice" then
Expand Down

0 comments on commit ea1079d

Please sign in to comment.