mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 13:31:04 +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
|
-- if true then return {} end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-tree/nvim-tree.lua",
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
|
@ -11,14 +10,16 @@ return {
|
||||||
{ "<leader>E", "<leader>fE", desc = "Explorer NvimTree (cwd)", remap = true },
|
{ "<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
|
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()
|
config = function()
|
||||||
require("nvim-tree").setup({
|
require("nvim-tree").setup()
|
||||||
-- actions = {
|
|
||||||
-- open_file = {
|
|
||||||
-- resize_window = false,
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
-- if true then return {} end
|
-- if true then return {} end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- bufferline
|
-- bufferline
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-tree.lua" },
|
|
||||||
opts = {
|
opts = {
|
||||||
options = {
|
options = {
|
||||||
offsets = {
|
offsets = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue