feat: automatic relative numbers
This commit is contained in:
13
nvim/lua/plugins/relative-toggle.lua
Normal file
13
nvim/lua/plugins/relative-toggle.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"cpea2506/relative-toggle.nvim",
|
||||
event = "BufEnter",
|
||||
config = function ()
|
||||
require("relative-toggle").setup({
|
||||
pattern = "*",
|
||||
events = {
|
||||
on = { "BufEnter", "FocusGained", "InsertLeave", "WinEnter", "CmdlineLeave" },
|
||||
off = { "BufLeave", "FocusLost", "InsertEnter", "WinLeave", "CmdlineEnter" },
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user