feat: try relativenumber again

This commit is contained in:
Fabio Lenherr / DashieTM 2023-03-09 22:08:20 +01:00
parent aac4d5c179
commit c2ed23defd
7 changed files with 16 additions and 16 deletions

View file

@ -1,12 +1,12 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
local function augroup(name)
return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true })
end
vim.api.nvim_create_autocmd("TextYankPost", {
group = augroup("toggle_relative_group"),
callback = function(_)
vim.cmd("set norelativenumber")
end,
})
-- local function augroup(name)
-- return vim.api.nvim_create_augroup("lazyvim_" .. name, { clear = true })
-- end
-- vim.api.nvim_create_autocmd("TextYankPost", {
-- group = augroup("toggle_relative_group"),
-- callback = function(_)
-- vim.cmd("set norelativenumber")
-- end,
-- })

View file

@ -11,7 +11,7 @@ local options = {
spelllang = "en_us",
shell = "/usr/bin/zsh",
autochdir = true,
relativenumber = false,
relativenumber = true,
}
vim.g.mkdp_browser = "/usr/bin/firefox"