Closed daUnknownCoder closed 1 month ago
the first bug I can't reproduce, my config below
vim.api.nvim_create_autocmd({
"InsertEnter",
"InsertLeave",
"BufEnter",
"BufLeave",
"WinEnter",
"WinLeave",
"CmdlineEnter",
"CmdlineLeave",
"VimEnter",
"VimLeave",
"ModeChanged",
}, {
callback = function()
local mode = vim.api.nvim_get_mode().mode
if mode == "i" or mode == "ic" then
vim.opt_local.relativenumber = false
else
vim.opt_local.relativenumber = true
end
end,
})
line_num = {
enable = true,
},
as for the second issue, I'm sorry that not sure what are you mentioned... can you provide more info?
For the second I mean see the indent chars, every 4-5 indents the char specified is not used, instead a normal bar (|) is used (ig?)
callback = function()
local mode = vim.api.nvim_get_mode().mode
if mode == "i" or mode == "ic" then
vim.opt_local.relativenumber = false
else
vim.opt_local.relativenumber = true
end
end,
This might be a better one, mines from chatgpt so it is doomed to fail lmao ill test with this config when I go home
For the second I mean see the indent chars, every 4-5 indents the char specified is not used, instead a normal bar (|) is used (ig?)
I still can't reproduce 😭, what would happened if you disable indent
mod
This might be a better one, mines from chatgpt so it is doomed to fail lmao ill test with this config when I go home
as for this code, maybe you can search for some plugin specializing in line_num, my code still has bug, when use dashboard and telescope will render line_num wrongly
Temporarily close this issue, please feel free to reopen if there are any problems.
Describe the bug Actually i recently started using an autocmd which goes as follows:
so what happens is the autocmd is doing its work and line_num too but after switching modes, i am not having the
orange
highlight...To Reproduce Steps to reproduce the behavior:
normal
toinsert
and back tonormal
Expected behavior I should see the orange highlight
Screenshots Normal: Insert: Back to normal:
See the orange highlight? it vanished into eternity Additional context my config:
something i also noticed: theres this chunk which does not get the selected indent char: idk why but it recurs every 4-5 indents