Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work after e17890289a3477f6c96e0e046d02859714fecbe2 #14

Closed
Flamme13 opened this issue Dec 16, 2024 · 4 comments
Closed

Don't work after e17890289a3477f6c96e0e046d02859714fecbe2 #14

Flamme13 opened this issue Dec 16, 2024 · 4 comments

Comments

@Flamme13
Copy link

Flamme13 commented Dec 16, 2024

Doesn't work with alpha dashboard after commit (e178902). Render empty space.
How to disable git check in this plugin? Because I use cli command to detect git.

local function get_prepared_header_val()
	if vim.trim(vim.fn.system("git rev-parse --is-inside-work-tree")) == "true" then
		local git_dashboard = require("git-dashboard-nvim").setup({
			centered = false,
			top_padding = 0,
			bottom_padding = 0,
			title = "none",
		})

		for i, v in ipairs(header_val) do
			header_val[i] = string.rep(" ", 15) .. v
		end

		return vim.list_extend(header_val, git_dashboard)
	end

	return header_val
end
@sudo-tee
Copy link
Contributor

I have the same issue. Replacing the Git.is_git_repo by your command makes it work again

image

@sudo-tee
Copy link
Contributor

I created a MR that fixes the issue

@csessh
Copy link
Contributor

csessh commented Dec 19, 2024

Hey @sudo-tee
That's awesome and thanks for fixing my bug :)

@msdone-lwt might also be thrilled

@juansalvatore
Copy link
Owner

I just merged #15 thanks guys!
CC: @sudo-tee @csessh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants