Skip to content

Commit 384e430

Browse files
committed
does not attach a nofile buffer
1 parent 85e9916 commit 384e430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/phoenix/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ return {
804804
group = vim.api.nvim_create_augroup('Phoenix', { clear = true }),
805805
pattern = Config.filetypes,
806806
callback = function(args)
807-
if vim.bo[args.buf].filetype == '' then
807+
if vim.bo[args.buf].filetype == '' or vim.bo[args.buf].buftype == 'nofile' then
808808
return
809809
end
810810

0 commit comments

Comments
 (0)