feat: add plugins, enable relative numbers
add barbar, git-blame and nvim-web-devicons plugins. enable both absolute and relative line numbers
This commit is contained in:
parent
a22976111e
commit
5e9c28e42b
7
init.lua
7
init.lua
|
@ -102,7 +102,10 @@ vim.g.have_nerd_font = false
|
|||
vim.opt.number = true
|
||||
-- You can also add relative line numbers, to help with jumping.
|
||||
-- Experiment for yourself to see if you like it!
|
||||
-- vim.opt.relativenumber = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- Display both absolute and relative line number
|
||||
vim.o.statuscolumn = '%s %l %r '
|
||||
|
||||
-- Enable mouse mode, can be useful for resizing splits for example!
|
||||
vim.opt.mouse = 'a'
|
||||
|
@ -929,7 +932,7 @@ require('lazy').setup({
|
|||
--
|
||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
||||
-- { import = 'custom.plugins' },
|
||||
{ import = 'custom.plugins' },
|
||||
}, {
|
||||
ui = {
|
||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'romgrk/barbar.nvim',
|
||||
dependencies = {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
},
|
||||
init = function()
|
||||
vim.g.barbar_auto_setup = false
|
||||
end,
|
||||
opts = {},
|
||||
version = '^1.0.0',
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
return {
|
||||
'f-person/git-blame.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
enabled = true,
|
||||
message_template = ' <author>, <date> • <summary>',
|
||||
date_format = '%d/%m/%y %H:%M',
|
||||
virtual_text_column = 1,
|
||||
},
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
'nvim-tree/nvim-web-devicons',
|
||||
enabled = true,
|
||||
}
|
Loading…
Reference in New Issue