66 lines
1.7 KiB
Lua
66 lines
1.7 KiB
Lua
return {
|
|
{
|
|
"nvim-tree/nvim-tree.lua",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" }, -- optional, adds file icons
|
|
config = function()
|
|
require("nvim-tree").setup({
|
|
disable_netrw = true, -- disable netrw (default file explorer)
|
|
hijack_netrw = true, -- replace netrw with nvim-tree
|
|
open_on_tab = false,
|
|
hijack_cursor = false,
|
|
update_cwd = true,
|
|
diagnostics = {
|
|
enable = true,
|
|
icons = {
|
|
hint = "H",
|
|
info = "I",
|
|
warning = "W",
|
|
error = "E",
|
|
},
|
|
},
|
|
git = {
|
|
enable = false,
|
|
},
|
|
view = {
|
|
width = 30,
|
|
side = "left",
|
|
number = false,
|
|
relativenumber = false,
|
|
},
|
|
})
|
|
|
|
-- Optional keymap to toggle the tree
|
|
vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" })
|
|
end,
|
|
},
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
config = function()
|
|
require("lualine").setup({
|
|
options = {
|
|
theme = "auto", -- follow your colorscheme
|
|
icons_enabled = true,
|
|
component_separators = "|",
|
|
section_separators = "",
|
|
globalstatus = true, -- single statusline
|
|
},
|
|
sections = {
|
|
lualine_a = { "mode" },
|
|
lualine_b = { "branch", "diff" },
|
|
lualine_c = {
|
|
{ "filename", path = 1 }, -- relative path
|
|
},
|
|
lualine_x = {
|
|
"diagnostics",
|
|
"encoding",
|
|
"filetype",
|
|
},
|
|
lualine_y = { "progress" },
|
|
lualine_z = { "location" },
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
}
|