Skip to content

Commit

Permalink
refactor(statuscol): update some buggy statuscol settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daUnknownCoder committed Feb 25, 2024
1 parent 1b215eb commit 74697ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lua/NeutronVim/plugins/UI/foldings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,23 @@ return {
{ "<leader>uu", "<cmd>lua require('ufo').closeAllFolds()<CR>", desc = "Close all folds" },
{ "<leader>up", "<cmd>lua require('ufo').peekFoldedLinesUnderCursor()<CR>", desc = "Peek fold under cursor" },
},
dependencies = "kevinhwang91/promise-async",
dependencies = {
{ "kevinhwang91/promise-async" },
{
"luukvbaal/statuscol.nvim",
config = function()
local builtin = require("statuscol.builtin")
require("statuscol").setup({
relculright = true,
segments = {
{ text = { builtin.foldfunc }, click = "v:lua.ScFa" },
{ text = { "%s" }, click = "v:lua.ScSa" },
{ text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
},
})
end,
},
},
config = function()
local ufo_status_ok, ufo = pcall(require, "ufo")
if not ufo_status_ok then
Expand Down

0 comments on commit 74697ed

Please sign in to comment.