Skip to content

Commit 1d2198d

Browse files
committedMar 1, 2023
fix: temporarily fix ft_ignore of statuscol
1 parent 7894bfa commit 1d2198d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
 

‎lazy-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"mini.comment": { "branch": "main", "commit": "9fc3fe43129e8c2611bd21b8f50af8c0d0742533" },
2929
"mini.indentscope": { "branch": "main", "commit": "ff1e68b5c01426f9dfff3278dd1b10c9b5f000a1" },
3030
"mini.pairs": { "branch": "main", "commit": "4ebc1ff8d77fe75e8f219432302800ca29e17614" },
31-
"monokai-pro.nvim": { "branch": "master", "commit": "5259a2ea9d20653ce5c49d76b677e54204c6c476" },
31+
"monokai-pro.nvim": { "branch": "master", "commit": "ae053118b5c4885e14cb34a0bc53162d6c8a7fe1" },
3232
"neo-tree.nvim": { "branch": "v2.x", "commit": "f3fd905a8c129863ce8314866f5b8d1bba6b97e2" },
3333
"noice.nvim": { "branch": "main", "commit": "d8a1f3056ad713b5d471048f8d029264828e22c0" },
3434
"nui.nvim": { "branch": "main", "commit": "0dc148c6ec06577fcf06cbab3b7dac96d48ba6be" },

‎lua/tvl/core/resources/editor.lua

+9-2
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,24 @@ return {
8585
config = function()
8686
local builtin = require("statuscol.builtin")
8787
require("statuscol").setup({
88-
relculright = true,
88+
relculright = false,
8989
segments = {
9090
{ -- line number
91-
text = { " ", builtin.lnumfunc },
91+
text = { builtin.lnumfunc },
9292
condition = { true, builtin.not_empty },
9393
click = "v:lua.ScLa",
9494
},
9595
{ text = { "%s" }, click = "v:lua.ScSa" }, -- Sign
9696
{ text = { "%C", " " }, click = "v:lua.ScFa" }, -- Fold
9797
}
9898
})
99+
vim.api.nvim_create_autocmd({ "BufEnter" }, {
100+
callback = function()
101+
if vim.bo.filetype == "neo-tree" then
102+
vim.o.statuscolumn = ""
103+
end
104+
end
105+
})
99106
end
100107
},
101108
}

0 commit comments

Comments
 (0)