We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0452a7d commit abe5ecaCopy full SHA for abe5eca
lua/fzf-lua/utils.lua
@@ -1133,11 +1133,15 @@ function M.nvim_buf_get_name(bufnr, bufinfo)
1133
end
1134
local bufname = vim.api.nvim_buf_get_name(bufnr)
1135
if #bufname == 0 then
1136
- local is_qf = M.buf_is_qf(bufnr, bufinfo)
1137
- if is_qf then
1138
- bufname = is_qf == 1 and "[Quickfix List]" or "[Location List]"
+ if vim.bo[bufnr].buftype == "nofile" then
+ bufname = "[Scratch]"
1139
else
1140
- bufname = "[No Name]"
+ local is_qf = M.buf_is_qf(bufnr, bufinfo)
+ if is_qf then
1141
+ bufname = is_qf == 1 and "[Quickfix List]" or "[Location List]"
1142
+ else
1143
+ bufname = "[No Name]"
1144
+ end
1145
1146
1147
assert(#bufname > 0)
0 commit comments