Skip to content

Commit

Permalink
fix(provider): check buftype for new files
Browse files Browse the repository at this point in the history
  • Loading branch information
bwpge committed Apr 28, 2024
1 parent cb0b816 commit ac6368c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lualine-pretty-path/providers/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ end
function M:is_new()
return not self:is_readonly()
and self.path ~= ""
and vim.bo.buftype == ""
and vim.uv.fs_stat(vim.fn.expand("%:p")) == nil
end

Expand Down

0 comments on commit ac6368c

Please sign in to comment.