mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
small syntax things
This commit is contained in:
parent
c82a186c34
commit
8a735e4453
2 changed files with 9 additions and 10 deletions
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
-- if true then return {} end
|
||||
|
||||
return {
|
||||
-- bufferline
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = { "nvim-tree/nvim-tree.lua" },
|
||||
opts = {
|
||||
options = {
|
||||
offsets = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue