Include nvim-tree and set options on startup
This commit is contained in:
parent
233444ac01
commit
1bed2425b1
13
init.lua
13
init.lua
@ -60,6 +60,12 @@ end
|
|||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
-- nvim-tree setup
|
-- nvim-tree setup
|
||||||
|
|
||||||
|
-- set ruler
|
||||||
|
vim.cmd('set colorcolumn=80')
|
||||||
|
|
||||||
|
-- set hybrid relative line numbers
|
||||||
|
vim.cmd('set nu rnu')
|
||||||
|
|
||||||
-- disable netrw at the very start of your init.lua (strongly advised)
|
-- disable netrw at the very start of your init.lua (strongly advised)
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
@ -197,7 +203,12 @@ require('lazy').setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'nvim-tree/nvim-tree.lua',
|
||||||
|
requires = {
|
||||||
|
'nvim-tree/nvim-web-devicons', -- optional
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
-- Highlight, edit, and navigate code
|
-- Highlight, edit, and navigate code
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
Loading…
Reference in New Issue
Block a user