Comments (6)
What does :lua print(vim.wo.foldtext)
show, when that buffer is open?
from neogit.
Hi, It does not print out anything
CleanShot.2024-05-17.at.17.49.14.mp4
from neogit.
I'm also hitting this issue, and have been on nightly for quite a while. Seems like something was just merged into master?
from neogit.
Odd - setting foldtext
to an empty string will have neovim print the line.
With the minimal config (below) I get the following:
This is with:
$ nvim -V1 -v
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
Do you still see the same issue with the config here?
Minimal Init:
local M = {}
function M.root(path)
local source = debug.getinfo(1, "S").source:sub(2)
local base_path = vim.fn.fnamemodify(source, ":p:h") .. "/.min"
return base_path .. "/" .. (path or "")
end
function M.load_plugin(plugin_name, plugin_url, branch)
local package_root = M.root("plugins/")
local install_destination = package_root .. plugin_name
vim.opt.runtimepath:append(install_destination)
if not vim.loop.fs_stat(package_root) then
vim.fn.mkdir(package_root, "p")
end
if not vim.loop.fs_stat(install_destination) then
print(string.format("> Downloading plugin '%s' to '%s'", plugin_name, install_destination))
vim.fn.system({
"git",
"clone",
"-b",
branch or "master",
"--depth=1",
plugin_url,
install_destination,
})
if vim.v.shell_error > 0 then
error(
string.format("> Failed to clone plugin: '%s' in '%s'!", plugin_name, install_destination),
vim.log.levels.ERROR
)
end
end
end
function M.setup(plugins)
vim.opt.packpath = {}
vim.opt.runtimepath:append(M.root(".min"))
if plugins ~= nil then
for plugin_name, plugin_url in pairs(plugins) do
local branch
if type(plugin_url) == "table" then
plugin_url, branch = unpack(plugin_url)
end
M.load_plugin(plugin_name, plugin_url, branch)
end
end
vim.env.XDG_CONFIG_HOME = M.root("xdg/config")
vim.env.XDG_DATA_HOME = M.root("xdg/data")
vim.env.XDG_STATE_HOME = M.root("xdg/state")
vim.env.XDG_CACHE_HOME = M.root("xdg/cache")
vim.api.nvim_create_autocmd("VimLeave", {
callback = function()
vim.fn.system({
"rm",
"-r",
"-f",
M.root("xdg"),
})
end,
})
end
M.setup({
plenary = "https://github.com/nvim-lua/plenary.nvim.git",
telescope = "https://github.com/nvim-telescope/telescope.nvim",
diffview = { "https://github.com/sindrets/diffview.nvim", "main" },
neogit = { "/users/cameron/code/neogit", "nightly" },
})
vim.keymap.set("n", ";", ":")
vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<cr>")
require("neogit").setup({})
from neogit.
Hi @CKolkey , I used your minimum config. Had to change the url of neogit as I believe its Is hardcoded to your personal path. I still have the same issue though
from neogit.
I uninstall neovim and re-installed the latest and greatest using which fixed the folding issue for me
brew unistall neovim
brew install neovim --HEAD
nvim version after the above commands
❯ nvim --version
NVIM v0.11.0-dev-3170+g0f4f7d32c-Homebrew
Build type: Release
LuaJIT 2.1.1713773202
from neogit.
Related Issues (20)
- closing commit_editor with kind = "vsplit" causes error HOT 2
- Discarding specific lines does not work
- ignored_settings not honoring the `--` flag of the log popup
- Erroneous behavior when working simutaniously with two or more git repos
- Is it possible to disable curosrline highlightings but keep context highlightings?
- unstaging a highlighted section in an staged but untracked file does not work HOT 6
- Float window cannot be split HOT 1
- NeogitWinSeparator has no default highlight
- Vertical split commit popup throws an error when closing or commiting in vsplit
- Tab not focused for secondary git repo the first time Neogit is opened
- Neogit fails to close staged diff split if commit editor is split instead of tab HOT 3
- Async errors + Neogit showing outdated state: neogit/lib/buffer.lua:349: Invalid buffer id: 44 HOT 13
- "Recent commits" section does not show if there are unmerged commits HOT 3
- ...al/share/nvim/lazy/neogit/lua/neogit/lib/item_filter.lua:18: bad argument #1 to 'new' (table expected, got boolean)
- `attempt to compare nil with number` when staging via visual-lines selection HOT 1
- Neogit showing incorrect/duplicate data in status buffer HOT 11
- Neogit starts producing errors when calling `neogit.open` twice from different `pwd`, OR when using a zsh terminal that runs the `powerlevel10k` theme
- regression: using neogit with external prompt for SSH freezes neovim HOT 4
- Opening the diff to a commit results in an error HOT 1
- regression in `:Neogit cwd=<cwd>`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neogit.