small syntax things

This commit is contained in:
Ralph 2024-04-01 00:18:54 -07:00
parent c82a186c34
commit 8a735e4453
2 changed files with 9 additions and 10 deletions

View file

@ -1,5 +1,4 @@
-- if true then return {} end
return {
{
"nvim-tree/nvim-tree.lua",
@ -11,14 +10,16 @@ return {
{ "<leader>E", "<leader>fE", desc = "Explorer NvimTree (cwd)", remap = true },
},
deactivate = function() require("nvim-tree.api").tree.close() end, -- or function() vim.cmd([[NvimTreeClose]]) end
init = function()
if vim.fn.argc(-1) == 1 then
local stat = vim.uv.fs_stat(vim.fn.argv(0))
if stat and stat.type == "directory" then
require("nvim-tree")
end
end
end,
config = function()
require("nvim-tree").setup({
-- actions = {
-- open_file = {
-- resize_window = false,
-- },
-- },
})
require("nvim-tree").setup()
end,
},
}

View file

@ -1,9 +1,7 @@
-- if true then return {} end
return {
-- bufferline
"akinsho/bufferline.nvim",
dependencies = { "nvim-tree/nvim-tree.lua" },
opts = {
options = {
offsets = {