upstream changes
This commit is contained in:
parent
03f77fc616
commit
218683541f
3
init.lua
3
init.lua
|
|
@ -350,12 +350,13 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- NOTE: Plugins can specify dependencies.
|
-- NOTE: Plugins can specify dependencies.
|
||||||
--
|
--
|
||||||
-- The dependencies are proper plugin specifications as well - anything
|
-- The dependencies are proper plugin specifications as well - anything
|
||||||
-- you do for a plugin at the top level, you can do for a dependency.
|
-- you do for a plugin at the top level, you can do for a dependency.
|
||||||
--
|
--
|
||||||
|
--
|
||||||
|
--
|
||||||
-- Use the `dependencies` key to specify the dependencies of a particular plugin
|
-- Use the `dependencies` key to specify the dependencies of a particular plugin
|
||||||
|
|
||||||
{ -- Fuzzy Finder (files, lsp, etc)
|
{ -- Fuzzy Finder (files, lsp, etc)
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,12 @@ return {
|
||||||
{
|
{
|
||||||
'nvim-tree/nvim-tree.lua',
|
'nvim-tree/nvim-tree.lua',
|
||||||
config = function()
|
config = function()
|
||||||
|
local api = require 'nvim-tree.api'
|
||||||
vim.g.loaded_netrw = 1
|
vim.g.loaded_netrw = 1
|
||||||
vim.g.loaded_netrwPlugin = 1
|
vim.g.loaded_netrwPlugin = 1
|
||||||
vim.api.nvim_create_autocmd('BufReadPost', {
|
vim.keymap.set('n', '<leader>st', function()
|
||||||
callback = function(data)
|
api.tree.toggle()
|
||||||
local api = require 'nvim-tree.api'
|
end, { desc = '[S]earch file tree [T]oggle' })
|
||||||
api.tree.open()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
require('nvim-tree').setup {
|
require('nvim-tree').setup {
|
||||||
sort = { sorter = 'case_sensitive' },
|
sort = { sorter = 'case_sensitive' },
|
||||||
view = { width = 30 },
|
view = { width = 30 },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue