mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: remove relative number
This commit is contained in:
parent
b75b9ce8a3
commit
563a66ff8e
1 changed files with 0 additions and 17 deletions
|
|
@ -54,23 +54,6 @@ vim.api.nvim_create_autocmd("WinLeave", {
|
|||
callback = function() vim.wo.cursorline = false end,
|
||||
})
|
||||
|
||||
local auto_linenr = vim.api.nvim_create_augroup("AutoLineNr", {})
|
||||
vim.api.nvim_create_autocmd({ "VimEnter", "WinEnter", "BufWinEnter" }, {
|
||||
group = auto_linenr,
|
||||
callback = function()
|
||||
-- fugitive, for example, doesn't have numbers
|
||||
-- if I set relative number I'll get numbers and we don't want that
|
||||
if vim.wo.number then
|
||||
vim.wo.relativenumber = true
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("WinLeave", {
|
||||
group = auto_linenr,
|
||||
callback = function() vim.wo.relativenumber = false end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "VimEnter", "FocusGained", "BufEnter" }, {
|
||||
group = vim.api.nvim_create_augroup("ReloadFileOnChange", {}),
|
||||
command = "checktime",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue