Disables relative line numbers when entering INSERT mode.
Different from other similar plugins, it will display absolute number when losing focus.
- Neovim >= 0.7
require('packer').startup(function(use)
use {
'h-hg/numbers.nvim',
config = function()
require('numbers').setup {
-- write your configuration here
}
end
}
end)
The default configuration
{
excluded_filetypes = {
startify = true, -- mhinz/vim-startify
dashboard = true, -- glepnir/dashboard-nvim
alpha = true, -- goolord/alpha-nvim
Outline = true, -- simrat39/symbols-outline.nvim
fugitive = true, -- tpope/vim-fugitive
packer = true, -- wbthomason/packer.nvim
NvimTree = true, -- kyazdani42/nvim-tree.lua
TelescopePrompt = true, -- nvim-telescope/telescope.nvim
},
excluded_buftyeps = {
terminal = true,
}
}