Skip to content

Commit

Permalink
fix(nvim): Exclude mini.files buffers from unsaved file count statusl…
Browse files Browse the repository at this point in the history
…ine component
  • Loading branch information
mrjones2014 committed Sep 6, 2023
1 parent 4d485eb commit 8fcfca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nvim/lua/my/configure/heirline/statusline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ local function unsaved_count()
return 0
else
return #vim.tbl_filter(function(buf)
return vim.api.nvim_buf_get_option(buf, 'modifiable') and vim.api.nvim_buf_get_option(buf, 'modified')
return vim.bo[buf].ft ~= 'minifiles'
and vim.bo[buf].bt ~= 'acwrite'
and vim.bo[buf].modifiable
and vim.bo[buf].modified
end, vim.api.nvim_list_bufs())
end
end
Expand Down
1 change: 0 additions & 1 deletion packages/neovim-nightly.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ in neovim.overrideAttrs (o: {
!= "use-the-correct-replacement-args-for-gsub-directive.patch") o.patches;
nativeBuildInputs = o.nativeBuildInputs ++ lib.optionals isDarwin [ liblpeg ];
})

0 comments on commit 8fcfca7

Please sign in to comment.