automatic relative number toggle
This commit is contained in:
parent
45e2a64680
commit
377c00592f
|
@ -33,6 +33,7 @@
|
|||
"nvim-treesitter": { "branch": "master", "commit": "f027762845fa35ff27fe0487c86537a74a480a0c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "26220156aafb198b2de6a4cf80c1b120a3768da0" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
|
||||
"relative-toggle.nvim": { "branch": "main", "commit": "fabe2f60f5f148f2bf1fb76e8a542f5adf8d996a" },
|
||||
"rose-pine": { "branch": "main", "commit": "8b1fd252255a7f2c41b4192a787ab62660b29f72" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
|
||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||
|
|
|
@ -27,3 +27,6 @@ vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left wind
|
|||
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
|
||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
vim.keymap.set('n', '<C-d>', '<C-d>zz')
|
||||
vim.keymap.set('n', '<C-u>', '<C-u>zz')
|
||||
|
|
|
@ -12,8 +12,10 @@ vim.g.loaded_netrwPlugin = 1
|
|||
|
||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
-- Make line numbers default
|
||||
-- vim.opt.number = true -- Make line number default
|
||||
-- see `help: number_relativenumber`
|
||||
vim.opt.number = true -- Make line number default
|
||||
vim.opt.relativenumber = true -- Make relative line number default
|
||||
|
||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
-- Automatically toggling smoothly between relative and absolute line numbers in various Neovim events.
|
||||
-- This is useful when you want to take advantage of the information on those types of numbers in different situations.
|
||||
--
|
||||
-- https://github.com/cpea2506/relative-toggle.nvim
|
||||
|
||||
return { 'cpea2506/relative-toggle.nvim' }
|
Loading…
Reference in New Issue