feat(vatsal): Create new config vatsal
kickstart folder contains the original init.lua file. Current init.lua gets it's config from lua.vatsal.plugins which what I created to modularize the code and enable lazy loading. Init to lua now loads all the plugins from vatsal.plugins
This commit is contained in:
parent
7a5a4b0c72
commit
47b7622fe7
27 changed files with 1233 additions and 11 deletions
33
lua/vatsal/plugins/nvim-tree.lua
Normal file
33
lua/vatsal/plugins/nvim-tree.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
lazy = 'true',
|
||||
cmd = { 'NvimTreeToggle', 'NvimTreeOpen' },
|
||||
keys = {
|
||||
{ '<S-t>', '<cmd>NvimTreeToggle .<CR>', { noremap = true, silent = true } }
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
--[[ init = function()
|
||||
vim.api.nvim_create_autocmd('BufEnter', {
|
||||
pattern = 'NvimTree',
|
||||
command = ":lua require('gitsigns').detach()"
|
||||
})
|
||||
end, ]]
|
||||
opts = {
|
||||
sort = {
|
||||
sorter = "case_sensitive",
|
||||
},
|
||||
view = {
|
||||
width = 38,
|
||||
},
|
||||
renderer = {
|
||||
group_empty = true,
|
||||
},
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue